diff --git a/src/services/keyboard_actions.ts b/src/services/keyboard_actions.ts index 95ee3e7b8..8d96a915f 100644 --- a/src/services/keyboard_actions.ts +++ b/src/services/keyboard_actions.ts @@ -503,6 +503,12 @@ function getDefaultKeyboardActions() { description: t("keyboard_actions.print-active-note"), scope: "window" }, + { + actionName: "exportAsPdf", + defaultShortcuts: [], + description: t("keyboard_actions.export-as-pdf"), + scope: "window" + }, { actionName: "openNoteExternally", defaultShortcuts: [], diff --git a/src/services/keyboard_actions_interface.ts b/src/services/keyboard_actions_interface.ts index f0f032e6a..68d708309 100644 --- a/src/services/keyboard_actions_interface.ts +++ b/src/services/keyboard_actions_interface.ts @@ -75,6 +75,7 @@ const enum KeyboardActionNamesEnum { toggleRibbonTabSimilarNotes, toggleRightPane, printActiveNote, + exportAsPdf, openNoteExternally, renderActiveNote, runActiveNote, diff --git a/translations/en/server.json b/translations/en/server.json index 5d2d79b9f..c3a840b40 100644 --- a/translations/en/server.json +++ b/translations/en/server.json @@ -90,7 +90,8 @@ "force-save-revision": "Force creating / saving new note revision of the active note", "show-help": "Shows built-in Help / cheatsheet", "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": { "title": "Login",