client,server: Implement shortcut for toggle classic editor toolbar

This commit is contained in:
Elian Doran 2024-11-09 18:36:38 +02:00
parent f88d3220b5
commit 8c69d47aed
No known key found for this signature in database
3 changed files with 13 additions and 2 deletions

View File

@ -34,7 +34,11 @@ const TPL = `\
*/
export default class ClassicEditorToolbar extends NoteContextAwareWidget {
get name() {
return "classicToolbar";
return "classicEditor";
}
get toggleCommand() {
return "toggleRibbonTabClassicEditor";
}
doRender() {

View File

@ -420,6 +420,12 @@ function getDefaultKeyboardActions() {
separator: t("keyboard_actions.ribbon-tabs")
},
{
actionName: "toggleRibbonTabClassicEditor",
defaultShortcuts: [],
description: t("keyboard_actions.toggle-classic-editor-toolbar"),
scope: "window"
},
{
actionName: "toggleRibbonTabBasicProperties",
defaultShortcuts: [],

View File

@ -89,7 +89,8 @@
"copy-without-formatting": "Copy selected text without formatting",
"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-book-properties": "Toggle Book Properties",
"toggle-classic-editor-toolbar": "Toggle the Formatting tab for the classic editor"
},
"login": {
"title": "Login",