From 37b06fb07e66c579e3e8aadf04ec331967cba1f2 Mon Sep 17 00:00:00 2001 From: James George <25279263+jamesgeorge007@users.noreply.github.com> Date: Thu, 26 Mar 2026 19:23:35 +0530 Subject: [PATCH] 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`. --- packages/hoppscotch-selfhost-web/src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-selfhost-web/src/main.ts b/packages/hoppscotch-selfhost-web/src/main.ts index 2cc0c94e..9cb82be0 100644 --- a/packages/hoppscotch-selfhost-web/src/main.ts +++ b/packages/hoppscotch-selfhost-web/src/main.ts @@ -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()