Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
route navigation no longer happening in typable areas (#1862)
Rishabh kalra0394deaeef13
diff --git a/packages/hoppscotch-app/helpers/keybindings.ts b/packages/hoppscotch-app/helpers/keybindings.tsindex 7fd06bee9..e7426c802 100644--- a/packages/hoppscotch-app/helpers/keybindings.ts+++ b/packages/hoppscotch-app/helpers/keybindings.ts@@ -95,9 +95,8 @@ function generateKeybindingString(ev: KeyboardEvent): ShortcutKey | null {const modifierKey = getActiveModifier(ev)const target = ev.target-- if (!modifierKey && !(isDOMElement(target) && isTypableElement(target))) {- // Check if we are having singulars instead+ // override default behaviour if element is typable+ if (modifierKey && isDOMElement(target) && isTypableElement(target)) {const key = getPressedKey(ev)if (!key) return null@@ -112,7 +111,6 @@ function generateKeybindingString(ev: KeyboardEvent): ShortcutKey | null {function getPressedKey(ev: KeyboardEvent): Key | null {const val = ev.key.toLowerCase()-// Check arrow keysif (val === "arrowup") return "up"else if (val === "arrowdown") return "down"