mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
popupMenu: Handle keypress if numlock is enabled
Add exception to handle a keypress if numlock is enabled as we already do for capslock. This uses Clutter.ModifierType.MOD2_MASK because at the moment there is not a more explicit way to refer to the numlock mask. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/550
This commit is contained in:
parent
655234e6c3
commit
8855622666
1 changed files with 2 additions and 1 deletions
|
|
@ -143,9 +143,10 @@ var PopupBaseMenuItem = new Lang.Class({
|
|||
_onKeyPressEvent(actor, event) {
|
||||
let state = event.get_state();
|
||||
|
||||
// if user has a modifier down (except capslock)
|
||||
// if user has a modifier down (except capslock and numlock)
|
||||
// then don't handle the key press here
|
||||
state &= ~Clutter.ModifierType.LOCK_MASK;
|
||||
state &= ~Clutter.ModifierType.MOD2_MASK;
|
||||
state &= Clutter.ModifierType.MODIFIER_MASK;
|
||||
|
||||
if (state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue