messageTray: Handle 'popup-menu' signal on summary items

Now that the message-tray is key navigable, we should enable
triggering the right-click menu by keyboard shortcut as well.

https://bugzilla.gnome.org/show_bug.cgi?id=682486
This commit is contained in:
Florian Müllner 2012-08-22 16:48:55 +02:00
parent 56dc2eb96e
commit ecbf2f1429

View File

@ -1578,10 +1578,15 @@ const MessageTray = new Lang.Class({
}));
summaryItem.actor.connect('clicked', Lang.bind(this,
function (actor, button) {
function(actor, button) {
actor.grab_key_focus();
this._onSummaryItemClicked(summaryItem, button);
}));
summaryItem.actor.connect('popup-menu', Lang.bind(this,
function(actor, button) {
actor.grab_key_focus();
this._onSummaryItemClicked(summaryItem, 3);
}));
source.connect('destroy', Lang.bind(this, this._onSourceDestroy));