Keyboard shortcut to close kanban edit modal
This commit is contained in:
parent
62a12e8825
commit
1e877e1980
@ -229,6 +229,9 @@ define([
|
|||||||
extraKeys: {"Shift-Ctrl-R": undefined},
|
extraKeys: {"Shift-Ctrl-R": undefined},
|
||||||
mode: "gfm"
|
mode: "gfm"
|
||||||
});
|
});
|
||||||
|
editor.on('keydown', function (editor, e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
});
|
||||||
var common = framework._.sfCommon;
|
var common = framework._.sfCommon;
|
||||||
var markdownTb = common.createMarkdownToolbar(editor);
|
var markdownTb = common.createMarkdownToolbar(editor);
|
||||||
$(text).before(markdownTb.toolbar);
|
$(text).before(markdownTb.toolbar);
|
||||||
@ -380,7 +383,7 @@ define([
|
|||||||
onClick: function () {
|
onClick: function () {
|
||||||
onCursorUpdate.fire({});
|
onCursorUpdate.fire({});
|
||||||
},
|
},
|
||||||
keys: []
|
keys: [13, 27]
|
||||||
}];
|
}];
|
||||||
var modal = UI.dialog.customModal(content, {
|
var modal = UI.dialog.customModal(content, {
|
||||||
buttons: button
|
buttons: button
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user