mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 20:17:01 +02:00
change in default keyboard shortcuts
This commit is contained in:
@@ -63,7 +63,11 @@ const addLink = (function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).bind('keydown', 'alt+l', showDialog);
|
||||
$(document).bind('keydown', 'ctrl+l', e => {
|
||||
showDialog();
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
return {
|
||||
showDialog
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -123,7 +123,11 @@ const recentNotes = (function() {
|
||||
|
||||
reload();
|
||||
|
||||
$(document).bind('keydown', 'alt+q', showDialog);
|
||||
$(document).bind('keydown', 'ctrl+e', e => {
|
||||
showDialog();
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
selectBoxEl.dblclick(e => {
|
||||
setActiveNoteBasedOnRecentNotes();
|
||||
|
||||
Reference in New Issue
Block a user