Skip to content

Commit 2e96f66

Browse files
author
tung-ideapad
committed
.
1 parent b9f0f9b commit 2e96f66

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ document.addEventListener('alpine:init', () => { Alpine.data('mainApp', () => ({
228228
event.preventDefault();
229229
this.revertDelete();
230230
}
231+
} else if ((event.ctrlKey || event.metaKey) && event.key === 'n') {
232+
if (!this.editingNoteId) {
233+
event.preventDefault();
234+
this.createNewNote();
235+
}
231236
} else if (event.key === 'Escape') {
232237
if (this.editingNoteId) {
233238
event.preventDefault();
@@ -685,7 +690,7 @@ document.addEventListener('alpine:init', () => { Alpine.data('mainApp', () => ({
685690
localStorage.setItem('feathernote-deleted-note-ids', JSON.stringify(this.deletedNoteIds));
686691
}
687692

688-
this.showToast({ title: 'Note Deleted', description: 'Press Ctrl+Z to undo. Syncing to remove from other devices.' });
693+
this.showToast({ title: 'Note Deleted', description: 'Press Ctrl+Z to undo.' });
689694
this.cancelEdit();
690695

691696
// Trigger a silent sync to process the remote deletion

0 commit comments

Comments
 (0)