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