Blame SOURCES/0001-popupMenu-Handle-keypress-if-numlock-is-enabled.patch

e251e4
From fb0a9a60ab8f1c0dd96e789969ab9b6e48a9fce4 Mon Sep 17 00:00:00 2001
e251e4
From: Olivier Fourdan <ofourdan@redhat.com>
e251e4
Date: Tue, 21 Jul 2020 16:33:04 +0200
e251e4
Subject: [PATCH] popupMenu: Handle keypress if numlock is enabled
e251e4
e251e4
On Wayland, navigating menus with the keyboard would not open drop-down
e251e4
menus when NumLock is enabled.
e251e4
e251e4
That's old issue (gnome-shell#550) that was not completely fixed with
e251e4
commit 88556226 because the lock mask needs to be filtered out in
e251e4
_onKeyPress() as well.
e251e4
e251e4
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/550
e251e4
---
e251e4
 js/ui/popupMenu.js | 3 ++-
e251e4
 1 file changed, 2 insertions(+), 1 deletion(-)
e251e4
e251e4
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
e251e4
index 6de081ce81..9835face19 100644
e251e4
--- a/js/ui/popupMenu.js
e251e4
+++ b/js/ui/popupMenu.js
e251e4
@@ -801,9 +801,10 @@ var PopupMenu = class extends PopupMenuBase {
e251e4
 
e251e4
         let state = event.get_state();
e251e4
 
e251e4
-        // if user has a modifier down (except capslock)
e251e4
+        // if user has a modifier down (except capslock and numlock)
e251e4
         // then don't handle the key press here
e251e4
         state &= ~Clutter.ModifierType.LOCK_MASK;
e251e4
+        state &= ~Clutter.ModifierType.MOD2_MASK;
e251e4
         state &= Clutter.ModifierType.MODIFIER_MASK;
e251e4
 
e251e4
         if (state)
e251e4
-- 
e251e4
2.26.2
e251e4