mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
EditSummaryWidget: Don't show suggestions on focus
Bug: T220176 Change-Id: Iffad075929d8835eb4f8677b33c3edd30a27b3f8
This commit is contained in:
parent
9143155722
commit
e2dfdf0ef7
|
@ -170,3 +170,23 @@ ve.ui.MWEditSummaryWidget.prototype.getLookupMenuOptionsFromData = function ( da
|
|||
} );
|
||||
} );
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWEditSummaryWidget.prototype.onLookupInputFocus = function () {
|
||||
this.lookupInputFocused = true;
|
||||
// Don't open menu on focus.
|
||||
// TODO: Make this an option upstream (T169484)
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWEditSummaryWidget.prototype.onLookupInputMouseDown = function () {
|
||||
// Always open the menu on mousedown, even if not focused.
|
||||
if ( !this.lookupMenu.isVisible() ) {
|
||||
this.populateLookupMenu();
|
||||
}
|
||||
// TODO: Make this an option upstream (T169484)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue