Skip to content

Accept numpad keys when typing in the search field - #60

Open
alextakitani wants to merge 1 commit into
typecraft-dev:mainfrom
alextakitani:fix/numpad-typing
Open

alextakitani wants to merge 1 commit into
typecraft-dev:mainfrom
alextakitani:fix/numpad-typing

Conversation

@alextakitani

Copy link
Copy Markdown

Numpad digits and operators (0-9, + - * / .) were ignored in the search field, which also made the calculator awkward to use from the numpad.

Qt sets Qt.KeypadModifier on every numpad key event, and isTyping only accepted events whose modifiers were exactly NoModifier or ShiftModifier. This masks out KeypadModifier before that comparison. Numpad Enter was already handled.

Tested on Omarchy with NumLock on: numpad digits now type into the query. omarchy plugin validate . passes and node --test tests/*.test.js is 138/138.

🤖 Generated with Claude Code

Qt sets KeypadModifier on every numpad key, so isTyping rejected numpad
digits and operators. Ignore that flag when checking modifiers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant