diff --git a/src/public/app/components/root_command_executor.js b/src/public/app/components/root_command_executor.js index d60b080c1..917f45af4 100644 --- a/src/public/app/components/root_command_executor.js +++ b/src/public/app/components/root_command_executor.js @@ -100,6 +100,10 @@ export default class RootCommandExecutor extends Component { await this.showAndHoistSubtree('_search'); } + async showUserGuideCommand() { + await this.showAndHoistSubtree('_userGuide'); + } + async showAndHoistSubtree(subtreeNoteId) { await appContext.tabManager.openContextWithNote(subtreeNoteId, true, null, subtreeNoteId); } diff --git a/src/public/app/widgets/buttons/global_menu.js b/src/public/app/widgets/buttons/global_menu.js index 89adaabad..7cf669a4e 100644 --- a/src/public/app/widgets/buttons/global_menu.js +++ b/src/public/app/widgets/buttons/global_menu.js @@ -75,7 +75,7 @@ const TPL = ` margin-right: 5px; } - body.mobile .show-help-button, body.mobile .show-about-dialog-button { + body.mobile .show-user-guide-button, body.mobile .show-about-dialog-button { /* hidden because these dialogs are not available for mobile */ display: none; } @@ -194,10 +194,10 @@ const TPL = ` </ul> </li> - <li class="dropdown-item show-help-button" data-trigger-command="showHelp"> + <li class="dropdown-item show-user-guide-button" data-trigger-command="showUserGuide"> <span class="bx bx-info-circle"></span> - Show Help - <kbd data-command="showHelp"></kbd> + Show User Guide + <kbd data-command="showUserGuide"></kbd> </li> <li class="dropdown-item show-about-dialog-button"> diff --git a/src/public/app/widgets/dialogs/help.js b/src/public/app/widgets/dialogs/help.js index d3f8ecf4f..ad48073fa 100644 --- a/src/public/app/widgets/dialogs/help.js +++ b/src/public/app/widgets/dialogs/help.js @@ -156,8 +156,4 @@ export default class HelpDialog extends BasicWidget { doRender() { this.$widget = $(TPL); } - - showHelpEvent() { - utils.openDialog(this.$widget); - } } diff --git a/src/services/keyboard_actions.js b/src/services/keyboard_actions.js index d665692a9..ec30db208 100644 --- a/src/services/keyboard_actions.js +++ b/src/services/keyboard_actions.js @@ -273,7 +273,7 @@ const DEFAULT_KEYBOARD_ACTIONS = [ scope: "window" }, { - actionName: "showHelp", + actionName: "showUserGuide", defaultShortcuts: ["F1"], description: "Shows built-in Help / cheatsheet", scope: "window"