From ecbf2f14295dd5e291ab988264d7bdac7a1ea8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 22 Aug 2012 16:48:55 +0200 Subject: [PATCH] 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 --- js/ui/messageTray.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 7d9afb7bb..a18e73501 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -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));