Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ui/dialogs/ve.ui.MWCommandHelpDialog.js

raw symbols SCIP
1 /*!
2 * VisualEditor UserInterface MWCommandHelpDialog class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 /**
9 * Dialog listing all command keyboard shortcuts.
10 *
11 * @class
12 * @extends ve.ui.CommandHelpDialog
13 *
14 * @constructor
15 * @param {Object} [config] Configuration options
16 */
17 ve.ui.MWCommandHelpDialog = function VeUiMWCommandHelpDialog( config ) {
18 // Parent constructor
19 ve.ui.MWCommandHelpDialog.super.call( this, config );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.ui.MWCommandHelpDialog, ve.ui.CommandHelpDialog );
25
26 /* Static properties */
27
28 ve.ui.MWCommandHelpDialog.static.commandGroups = ve.extendObject( {}, ve.ui.MWCommandHelpDialog.static.commandGroups, {
29 insert: {
30 title: OO.ui.deferMsg( 'visualeditor-shortcuts-insert' ),
31 promote: [ 'ref', 'template', 'table' ],
32 demote: [ 'horizontalRule' ]
33 }
34 } );
35
36 ve.ui.MWCommandHelpDialog.static.commandGroupsOrder = [
37 'textStyle', 'clipboard', 'history', 'dialog',
38 'formatting', 'insert',
39 'other'
40 ];
41
42 /* Registration */
43
44 ve.ui.windowFactory.register( ve.ui.MWCommandHelpDialog );