diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineParameterSelectWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineParameterSelectWidget.js index 880fcd218e..9475a15097 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineParameterSelectWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineParameterSelectWidget.js @@ -46,9 +46,9 @@ OO.mixinClass( ve.ui.MWTransclusionOutlineParameterSelectWidget, ve.ui.MWAriaDes /** * This is fired instead of the "choose" event from the {@see OO.ui.SelectWidget} base class when - * pressing space on a parameter to toggle it, without loosing the focus. + * pressing space on a parameter to toggle it or scroll it into view, without losing the focus. * - * @event templateParameterSelectionChanged + * @event templateParameterSpaceDown * @param {ve.ui.MWTransclusionOutlineParameterWidget} item * @param {boolean} selected */ @@ -196,7 +196,7 @@ ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.onMouseDown = functio * @inheritDoc OO.ui.SelectWidget * @param {KeyboardEvent} e * @fires choose - * @fires templateParameterSelectionChanged + * @fires templateParameterSpaceDown */ ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.onDocumentKeyDown = function ( e ) { var item; @@ -224,7 +224,7 @@ ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.onDocumentKeyDown = f } else { this.selectItem( item ); } - this.emit( 'templateParameterSelectionChanged', item, item.isSelected() ); + this.emit( 'templateParameterSpaceDown', item, item.isSelected() ); } e.preventDefault(); break; diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js index 7fa04d3a1a..4bf2c584ed 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineTemplateWidget.js @@ -103,7 +103,7 @@ ve.ui.MWTransclusionOutlineTemplateWidget.prototype.initializeParameterList = fu $ariaDescribedBy: $parametersAriaDescription } ).connect( this, { choose: 'onTemplateParameterChoose', - templateParameterSelectionChanged: 'onTemplateParameterSelectionChanged', + templateParameterSpaceDown: 'onTemplateParameterSpaceDown', change: 'onParameterWidgetListChanged' } ); @@ -299,7 +299,7 @@ ve.ui.MWTransclusionOutlineTemplateWidget.prototype.onTemplateParameterChoose = * @param {OO.ui.OptionWidget} item * @param {boolean} selected */ -ve.ui.MWTransclusionOutlineTemplateWidget.prototype.onTemplateParameterSelectionChanged = function ( item, selected ) { +ve.ui.MWTransclusionOutlineTemplateWidget.prototype.onTemplateParameterSpaceDown = function ( item, selected ) { this.toggleParameter( item, selected, true ); };