feat(pdf): add keyboard shortcut

This commit is contained in:
Elian Doran 2025-02-01 00:36:06 +02:00
parent f3a3906db7
commit 719046e2ca
No known key found for this signature in database
3 changed files with 9 additions and 1 deletions

View File

@ -503,6 +503,12 @@ function getDefaultKeyboardActions() {
description: t("keyboard_actions.print-active-note"), description: t("keyboard_actions.print-active-note"),
scope: "window" scope: "window"
}, },
{
actionName: "exportAsPdf",
defaultShortcuts: [],
description: t("keyboard_actions.export-as-pdf"),
scope: "window"
},
{ {
actionName: "openNoteExternally", actionName: "openNoteExternally",
defaultShortcuts: [], defaultShortcuts: [],

View File

@ -75,6 +75,7 @@ const enum KeyboardActionNamesEnum {
toggleRibbonTabSimilarNotes, toggleRibbonTabSimilarNotes,
toggleRightPane, toggleRightPane,
printActiveNote, printActiveNote,
exportAsPdf,
openNoteExternally, openNoteExternally,
renderActiveNote, renderActiveNote,
runActiveNote, runActiveNote,

View File

@ -90,7 +90,8 @@
"force-save-revision": "Force creating / saving new note revision of the active note", "force-save-revision": "Force creating / saving new note revision of the active note",
"show-help": "Shows built-in Help / cheatsheet", "show-help": "Shows built-in Help / cheatsheet",
"toggle-book-properties": "Toggle Book Properties", "toggle-book-properties": "Toggle Book Properties",
"toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar" "toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar",
"export-as-pdf": "Exports the current note as a PDF"
}, },
"login": { "login": {
"title": "Login", "title": "Login",