summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2018-09-11 16:06:09 +0200
committerFlorian Müllner <fmuellner@gnome.org>2018-09-11 16:27:47 +0200
commit035dfe2a19b5af384b2eff9c3710bdc3a834ce75 (patch)
tree3f1e6cde1248bc3d527f38cd0bbec43bd200fe24
parent2d791a51c0f4ec445cf52cdb0ac6a0bf39cef452 (diff)
downloadgnome-shell-wip/fmuellner/fix-98.tar.gz
appIconMenu: Disable sourceActor key eventswip/fmuellner/fix-98
Enter/space are already taken over by the app icon to activate the app, and arrow keys interfere with keyboard navigation where icons are arranged in a grid (namely the app picker). Also as app icons only create the menu when it is first needed, the shortcuts only starts to work once a menu has been opened, which is rather inconsistent and confusing. It is better to simply disable the key handling altogether for the app icon menu. https://gitlab.gnome.org/GNOME/gnome-shell/issues/98
-rw-r--r--js/ui/appDisplay.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 623dc6f38..98652057a 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1854,6 +1854,11 @@ var AppIconMenu = new Lang.Class({
Main.uiGroup.add_actor(this.actor);
},
+ // disable parent's handler
+ _onKeyPress(actor, event) {
+ return Clutter.EVENT_PROPAGATE;
+ },
+
_redisplay() {
this.removeAll();