mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 13:26:16 +00:00
feat: auto-focus new chords
This commit is contained in:
@@ -99,9 +99,11 @@
|
||||
let hasFocus = false;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-autofocus -->
|
||||
<div
|
||||
on:keydown={keypress}
|
||||
on:mousedown={clickCursor}
|
||||
autofocus={chord.phrase.length === 0}
|
||||
role="textbox"
|
||||
tabindex="0"
|
||||
bind:this={box}
|
||||
|
||||
Reference in New Issue
Block a user