diff --git a/src/routes/config/chords/ChordActionEdit.svelte b/src/routes/config/chords/ChordActionEdit.svelte index 47495f72..a2e3be77 100644 --- a/src/routes/config/chords/ChordActionEdit.svelte +++ b/src/routes/config/chords/ChordActionEdit.svelte @@ -26,6 +26,8 @@ } function keydown(event: KeyboardEvent) { + // This is obviously a tradeoff + if (event.key === "Tab" || event.key === "Escape") return; if (!editing) return; event.preventDefault(); const input = inputToAction(event, get(serialPort)?.device === "X"); @@ -85,6 +87,7 @@ on:click={edit} on:keydown={keydown} on:keyup={keyup} + on:blur={keyup} > {#if editing && pressedKeys.size === 0} {$LL.configure.chords.HOLD_KEYS()}