Skip to content

Map keypad digits in the polkit dialog when Qt ignores NumLock - #10530

Open
MADS0LADEN wants to merge 1 commit into
omacom:quattrofrom
MADS0LADEN:fix/polkit-keypad-numlock
Open

Map keypad digits in the polkit dialog when Qt ignores NumLock#10530
MADS0LADEN wants to merge 1 commit into
omacom:quattrofrom
MADS0LADEN:fix/polkit-keypad-numlock

Conversation

@MADS0LADEN

Copy link
Copy Markdown

Summary

  • Qt does not read system NumLock at startup (QTBUG-32687), so the polkit PIN/password field treats the numeric keypad as off even when Hyprland reports numLock: true.
  • Keypad digits then arrive as navigation keys (Left, Home, End, …) with KeypadModifier and insert nothing until NumLock is toggled twice.
  • Map those keypad keys back to digits in omarchy.polkit so a PIN can be typed immediately. The plugin id is unchanged.

Fixes #8552

Test plan

  • bash test/shell.d/polkit-test.sh
  • pkexec true with NumLock on: type digits on the numeric keypad without toggling NumLock
  • Confirm a wrong PIN still shakes/fails, and Escape still cancels
  • Confirm the top number row still works as before

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@MADS0LADEN
MADS0LADEN requested a review from dhh as a code owner September 6, 2026 18:49
Copilot AI lite review requested due to automatic review settings September 6, 2026 18:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Numeric keypad types nothing in the polkit dialog, lock screen and launcher (Qt ignores NumLock at startup)

2 participants