From 76d0b95af3c7a602f603779ea1f1338d3cac625e Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 22 Aug 2018 13:28:58 +0100 Subject: [PATCH] Re-order MWCommandHelpDialog and promote/demote insert tools Change-Id: I3ac4e556e06e2ab899d8bc07ca79d847146952e6 Depends-On: Ic12bc1c3ac96a1feb79e277e65aaf2d29af4f03f --- modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js index 0ea6f356ce..8910247029 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js @@ -28,11 +28,17 @@ OO.inheritClass( ve.ui.MWCommandHelpDialog, ve.ui.CommandHelpDialog ); ve.ui.MWCommandHelpDialog.static.commandGroups = ve.extendObject( {}, ve.ui.MWCommandHelpDialog.static.commandGroups, { insert: { title: OO.ui.deferMsg( 'visualeditor-shortcuts-insert' ), - promote: [], - demote: [] + promote: [ 'ref', 'template', 'table' ], + demote: [ 'horizontalRule' ] } } ); +ve.ui.MWCommandHelpDialog.static.commandGroupsOrder = [ + 'textStyle', 'clipboard', 'history', 'dialog', + 'formatting', 'insert', + 'other' +]; + /* Registration */ ve.ui.windowFactory.register( ve.ui.MWCommandHelpDialog );