focus unlock input when window is focused
This commit is contained in:
parent
3b61aa924a
commit
295698e62f
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
let alert;
|
let alert;
|
||||||
let passphrase = '';
|
let passphrase = '';
|
||||||
|
|
||||||
let saving = false;
|
let saving = false;
|
||||||
async function unlock() {
|
async function unlock() {
|
||||||
saving = true;
|
saving = true;
|
||||||
@ -40,6 +40,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<svelte:window on:focus={input.focus} />
|
||||||
|
|
||||||
<div class="fixed top-0 w-full p-2 text-center">
|
<div class="fixed top-0 w-full p-2 text-center">
|
||||||
<h1 class="text-3xl font-bold">Creddy is locked</h1>
|
<h1 class="text-3xl font-bold">Creddy is locked</h1>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user