From 43bdb8db869bd05b3f59e05353177907d754fb8b Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 29 Jul 2020 03:39:42 -0500 Subject: [PATCH] notes: allow ctrl+enter to save note. Pressing Ctrl+Enter inside the note edit box will save the note. --- app/javascript/src/javascripts/notes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/src/javascripts/notes.js b/app/javascript/src/javascripts/notes.js index 145bb787f..3cb38efb7 100644 --- a/app/javascript/src/javascripts/notes.js +++ b/app/javascript/src/javascripts/notes.js @@ -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: () => {