mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
shortcut fixes
This commit is contained in:
@@ -127,7 +127,7 @@ $noteTabContainer.on("click", ".export-note-button", function () {
|
||||
$noteTabContainer.on("click", ".import-files-button",
|
||||
() => import('./dialogs/import.js').then(d => d.showDialog(treeService.getActiveNode())));
|
||||
|
||||
$noteTabContainer.on("click", ".print-note-button", async function () {
|
||||
async function printActiveNote() {
|
||||
if ($(this).hasClass("disabled")) {
|
||||
return;
|
||||
}
|
||||
@@ -145,7 +145,11 @@ $noteTabContainer.on("click", ".print-note-button", async function () {
|
||||
loadCSS: "libraries/codemirror/codemirror.css",
|
||||
debug: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
keyboardActionService.setGlobalActionHandler("PrintActiveNote", printActiveNote);
|
||||
|
||||
$noteTabContainer.on("click", ".print-note-button", printActiveNote);
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip({
|
||||
html: true
|
||||
|
||||
Reference in New Issue
Block a user