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