From 99cd07a870e8ae54dc86ff0cb4cd8f1ba5133716 Mon Sep 17 00:00:00 2001 From: Leonardo Garcia Gerytch Date: Thu, 5 Nov 2026 16:27:13 -0300 Subject: [PATCH] Fix numpad input in launcher search --- ui/LauncherWindow.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/LauncherWindow.qml b/ui/LauncherWindow.qml index 618a8ad..6fb8ad6 100644 --- a/ui/LauncherWindow.qml +++ b/ui/LauncherWindow.qml @@ -643,8 +643,12 @@ PanelWindow { } function isTyping(event) { + // Qt adds KeypadModifier to numpad keys even when Num Lock is on. It is + // metadata about the key source, not a shortcut modifier, so ignore it + // when deciding whether printable text should enter the search field. + var modifiers = event.modifiers & ~Qt.KeypadModifier return event.text && event.text.length === 1 && event.text.charCodeAt(0) >= 32 && event.text.charCodeAt(0) !== 127 - && (event.modifiers === Qt.NoModifier || event.modifiers === Qt.ShiftModifier) + && (modifiers === Qt.NoModifier || modifiers === Qt.ShiftModifier) } Connections {