From 1e877e19807944c42aeadf24e9d93f44a4e9ad16 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 12 Mar 2020 13:46:26 +0100 Subject: [PATCH] Keyboard shortcut to close kanban edit modal --- www/kanban/inner.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/kanban/inner.js b/www/kanban/inner.js index ffabd8951..536d82bf5 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -229,6 +229,9 @@ define([ extraKeys: {"Shift-Ctrl-R": undefined}, mode: "gfm" }); + editor.on('keydown', function (editor, e) { + e.stopPropagation(); + }); var common = framework._.sfCommon; var markdownTb = common.createMarkdownToolbar(editor); $(text).before(markdownTb.toolbar); @@ -380,7 +383,7 @@ define([ onClick: function () { onCursorUpdate.fire({}); }, - keys: [] + keys: [13, 27] }]; var modal = UI.dialog.customModal(content, { buttons: button