mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
appIconMenu: Disable sourceActor key events
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
This commit is contained in:
parent
2d791a51c0
commit
035dfe2a19
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue