[gnome-shell] legacyTray: Pass on keyboard events to the icon
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] legacyTray: Pass on keyboard events to the icon
- Date: Sun, 22 Mar 2015 08:34:09 +0000 (UTC)
commit f2c1a416bf8eb47a0dfe8ef8dbd90d971c6803e9
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Mar 19 23:07:12 2015 +0100
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
<shift>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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/legacyTray.js b/js/ui/legacyTray.js
index 57a756a..42927ef 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]