[gnome-shell] messageTray: Handle 'popup-menu' signal on summary items



commit ecbf2f14295dd5e291ab988264d7bdac7a1ea8d7
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Aug 22 16:48:55 2012 +0200

    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 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 7d9afb7..a18e735 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));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]