From f2c1a416bf8eb47a0dfe8ef8dbd90d971c6803e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 19 Mar 2015 23:07:12 +0100 Subject: [PATCH] legacyTray: Pass on keyboard events to the icon There is currently no way to trigger an icon's right-click menu by keyboard. While there's a good chance that the icon will ignore F10 and similar shortcuts, passing on key events will at least make it work for some icons ... https://bugzilla.gnome.org/show_bug.cgi?id=746487 --- js/ui/legacyTray.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js index 57a756a4b..42927ef6d 100644 --- a/js/ui/legacyTray.js +++ b/js/ui/legacyTray.js @@ -162,6 +162,11 @@ const LegacyTray = new Lang.Class({ function() { icon.click(Clutter.get_current_event()); }); + button.connect('key-press-event', + function() { + icon.click(Clutter.get_current_event()); + return Clutter.EVENT_PROPAGATE; + }); button.connect('key-focus-in', Lang.bind(this, function() { this._concealHandle.show();