diff --git a/src/lib/components/NoteNavbar.svelte b/src/lib/components/NoteNavbar.svelte index 3e453fd..9ec367a 100644 --- a/src/lib/components/NoteNavbar.svelte +++ b/src/lib/components/NoteNavbar.svelte @@ -10,13 +10,14 @@ { - - }} - onkeydown={(e) => { if (e.key === "n" && e.metaKey) { expanded = true; + return; + } + if( e.key === "Escape") { + expanded = false; + return; } }} /> @@ -24,5 +25,7 @@ {#if !expanded}
Scrivi una nota...
{:else} - +
+ +
{/if} \ No newline at end of file