notes: allow ctrl+enter to save note.

Pressing Ctrl+Enter inside the note edit box will save the note.
This commit is contained in:
evazion
2020-07-29 03:39:42 -05:00
parent fe557e7e85
commit 43bdb8db86

View File

@@ -597,6 +597,7 @@ class Note {
"ui-dialog": "note-edit-dialog",
},
open: () => {
Utility.keydown("ctrl+return", "save_note", () => this.save($dialog, note), ".note-edit-dialog textarea");
$(".note-box").addClass("editing");
},
close: () => {