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:
parent
ce0fdeccfb
commit
37b06fb07e
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue