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

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