amend
This commit is contained in:
@@ -10,13 +10,14 @@
|
||||
</script>
|
||||
|
||||
<svelte:window
|
||||
onclick={() => {
|
||||
|
||||
}}
|
||||
|
||||
onkeydown={(e) => {
|
||||
if (e.key === "n" && e.metaKey) {
|
||||
expanded = true;
|
||||
return;
|
||||
}
|
||||
if( e.key === "Escape") {
|
||||
expanded = false;
|
||||
return;
|
||||
}
|
||||
}}
|
||||
/>
|
||||
@@ -24,5 +25,7 @@
|
||||
{#if !expanded}
|
||||
<div>Scrivi una nota...</div>
|
||||
{:else}
|
||||
<div class="note-editor-container">
|
||||
<NoteEditor note={undefined} onSubmit={onCreate} />
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user