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

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