change in default keyboard shortcuts

This commit is contained in:
azivner
2017-12-18 23:41:13 -05:00
parent 35912f325b
commit 0d6ccd7f61
6 changed files with 48 additions and 16 deletions

View File

@@ -4,7 +4,6 @@ const jumpToNote = (function() {
const dialogEl = $("#jump-to-note-dialog");
const autoCompleteEl = $("#jump-to-note-autocomplete");
const formEl = $("#jump-to-note-form");
const noteDetailEl = $('#note-detail');
async function showDialog() {
glob.activeDialog = dialogEl;
@@ -42,7 +41,11 @@ const jumpToNote = (function() {
}
}
$(document).bind('keydown', 'alt+j', showDialog);
$(document).bind('keydown', 'ctrl+j', e => {
showDialog();
e.preventDefault();
});
formEl.submit(() => {
const action = dialogEl.find("button:focus").val();