diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index c222bcd85e..424fe720cb 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -1122,7 +1122,7 @@ ve.init.mw.ViewPageTarget.prototype.attachToolbarButtons = function () { 'type': 'list', 'icon': 'menu', 'title': ve.msg( 'visualeditor-pagemenu-tooltip' ), - 'include': [ 'meta', 'settings', 'advancedSettings', 'categories', 'languages', 'editModeSource', 'commandHelp' ] + 'include': [ 'meta', 'settings', 'advancedSettings', 'categories', 'languages', 'editModeSource' ] } ] ); diff --git a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js index f4da44b8ec..8e8cbba751 100644 --- a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js +++ b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js @@ -114,6 +114,12 @@ ve.ui.MWHelpPopupTool = function VeUiMWHelpPopupTool( toolGroup, config ) { 'target': '_blank', 'label': ve.msg( 'visualeditor-help-label' ) } ); + this.keyboardShortcutsButton = new OO.ui.ButtonWidget( { + '$': this.$, + 'frameless': true, + 'icon': 'help', + 'label': ve.msg( 'visualeditor-dialog-command-help-title' ) + } ); this.feedbackButton = new OO.ui.ButtonWidget( { '$': this.$, 'frameless': true, @@ -123,6 +129,7 @@ ve.ui.MWHelpPopupTool = function VeUiMWHelpPopupTool( toolGroup, config ) { // Events this.feedbackButton.connect( this, { 'click': 'onFeedbackClick' } ); + this.keyboardShortcutsButton.connect( this, { 'click': 'onKeyboardShortcutsClick' } ); // Initialization this.$items @@ -136,6 +143,7 @@ ve.ui.MWHelpPopupTool = function VeUiMWHelpPopupTool( toolGroup, config ) { this.$( '