Skip to content

Port numpad keyboard tests and add the numpad key layout - #82

Open
kblok wants to merge 1 commit into
mainfrom
port/keyboard-numpad
Open

kblok wants to merge 1 commit into
mainfrom
port/keyboard-numpad

Conversation

@kblok

@kblok kblok commented Oct 6, 2026

Copy link
Copy Markdown
Member

Our US keyboard layout only knew NumpadEnter and NumpadSubtract, so pressing any other numpad key threw "Unknown key". It now has the full numpad block from upstream. Numpad digits and NumpadDecimal act as navigation keys (NumpadDecimal reports Delete). With Shift held they type the digit or . with the numpad key code. Chromium keyup now sends isKeypad too, so keyup reports the numpad location like keydown does. The Alt-modifier test needed no library change: we already drop text when a non-Shift modifier is held.

Closes #20

🤖 Generated with Claude Code

Add the numpad block of the US keyboard layout (NumpadDecimal reports
Delete, Shift+numpad digits type digits with the numpad key codes) and
send isKeypad on Chromium keyup so keyup reports the numpad location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

Port missing upstream tests from page/page-keyboard.spec.ts (4)

1 participant