Trevor Parscal has uploaded a new change for review. https://gerrit.wikimedia.org/r/130402
Change subject: Add focus method to SearchWidget ...................................................................... Add focus method to SearchWidget Wheee! Change-Id: I258b18a12c96790578a3a18fedd02ac8eb81d504 --- M src/widgets/SearchWidget.js 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/02/130402/1 diff --git a/src/widgets/SearchWidget.js b/src/widgets/SearchWidget.js index ce290c1..ee690aa 100644 --- a/src/widgets/SearchWidget.js +++ b/src/widgets/SearchWidget.js @@ -151,6 +151,13 @@ }; /** + * Focus the query input. + */ +OO.ui.SearchWidget.prototype.focus = function () { + this.query.$input[0].focus(); +}; + +/** * Get the results list. * * @return {OO.ui.SelectWidget} Select list -- To view, visit https://gerrit.wikimedia.org/r/130402 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I258b18a12c96790578a3a18fedd02ac8eb81d504 Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Trevor Parscal <tpars...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits