Browse Source

fix: hotkey input via tab

Sv443 1 year ago
parent
commit
3e6f3e9598
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/utils/hotkeyInput.ts

+ 2 - 2
src/utils/hotkeyInput.ts

@@ -131,8 +131,8 @@ export function createHotkeyInput({ initialValue, onChange }: HotkeyInputProps):
     else
       deactivate();
   });
-  inputElem.addEventListener("keydown", (e) => {
-    if(inputElem.dataset.state === "inactive" && ["Enter", " ", "Space"].includes(e.key))
+  inputElem.addEventListener("keydown", () => {
+    if(inputElem.dataset.state === "inactive")
       activate();
   });