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

@ -1582,6 +1582,11 @@ const MessageTray = new Lang.Class({
actor.grab_key_focus(); actor.grab_key_focus();
this._onSummaryItemClicked(summaryItem, button); 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)); source.connect('destroy', Lang.bind(this, this._onSourceDestroy));