v0.3.1
focusKey
action should reflect updated actions
<script>
import { focusKey } from "svelte-focus-key";
let selectText = false;
let key = "k";
let value = "text";
</script>
<input
use:focusKey={{ key, selectText }}
placeholder={'Press "k" to focus'}
bind:value
/>
<button
on:click={() => {
key = key === "/" ? "k" : "/";
selectText = !selectText;
}}
>
Update options
</button>