mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
make sure all keyboard shortcuts use utility methods to not break mobile frontend
This commit is contained in:
@@ -95,7 +95,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, tabConte
|
||||
}
|
||||
|
||||
if (opts.shortcut) {
|
||||
$(document).bind('keydown', opts.shortcut, opts.action);
|
||||
utils.bindGlobalShortcut(opts.shortcut, opts.action);
|
||||
|
||||
button.attr("title", "Shortcut " + opts.shortcut);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user