Skip to content

fix(chromium): report numpad location on keyup - #42913

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yuriy-mikityuk:fix-chromium-keypad-keyup-location
Sep 25, 2026
Merged

Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yuriy-mikityuk:fix-chromium-keypad-keyup-location

Conversation

@yuriy-mikityuk

Copy link
Copy Markdown
Contributor

keyUp in crInput.ts was sent without isKeypad, so in Chromium press('NumpadSubtract') gave keydown with location 3 (NUMPAD) but keyup with location 1 (LEFT). Firefox and WebKit report 3 for both. The existing location test only checks keydown, so I added one that checks keyup too.

keyUp was dispatched without isKeypad, so Chromium reported numpad keys
with location LEFT on keyup, while keydown had NUMPAD. Firefox and
WebKit already report NUMPAD for both.
@yury-s

Copy link
Copy Markdown
Member

Yuriy Mikityuk (@yuriy-mikityuk) please accept CLA as described above so that we could merge this pr

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

5 flaky ⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:690 › screencast › should capture full viewport `@realtime-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node24`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-ubuntu-22.04-node20`

52281 passed, 1241 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

2 failed
❌ [firefox] › mcp/annotate.spec.ts:446 › should switch screencast to -s session on show --annotate @mcp-windows-latest-firefox
❌ [webkit] › mcp/sse.spec.ts:196 › sse transport browser lifecycle (persistent) @mcp-ubuntu-latest-webkit

8710 passed, 1480 skipped


Merge workflow run.

@yuriy-mikityuk

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

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.

2 participants