fix(selfhost-web): restore numpad support for first/last tab shortcuts

Follow-up for #6009: restore `Ctrl+Alt+Numpad9/0` tab switching in Desktop App.
Add `Numpad9/Numpad0` with the same NumLock guard used in `keybindings.ts`.
This commit is contained in:
James George 2026-03-26 19:23:35 +05:30
parent ce0fdeccfb
commit 37b06fb07e

View file

@ -342,7 +342,8 @@ async function initApp() {
isCtrlOrCmd &&
!e.shiftKey &&
e.altKey &&
e.code === "Digit9"
(e.code === "Digit9" ||
(e.code === "Numpad9" && e.getModifierState("NumLock")))
) {
// Ctrl/Cmd + Alt + 9 - First Tab
e.preventDefault()
@ -353,7 +354,8 @@ async function initApp() {
isCtrlOrCmd &&
!e.shiftKey &&
e.altKey &&
e.code === "Digit0"
(e.code === "Digit0" ||
(e.code === "Numpad0" && e.getModifierState("NumLock")))
) {
// Ctrl/Cmd + Alt + 0 - Last Tab
e.preventDefault()