EditSummaryWidget: Don't show suggestions on focus

Bug: T220176
Change-Id: Iffad075929d8835eb4f8677b33c3edd30a27b3f8
This commit is contained in:
Ed Sanders 2019-04-05 13:40:33 +01:00
parent 9143155722
commit e2dfdf0ef7

View file

@ -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)
};