shortcut fixes

This commit is contained in:
zadam
2019-11-24 22:15:33 +01:00
parent 1e979d71c7
commit dbd2040bee
4 changed files with 37 additions and 22 deletions

View File

@@ -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