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
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: [],