Focus input and move cursor to end when MathDialog opens

Change-Id: Ie963913723b8c5f8ffb32701477627387c77eb85
This commit is contained in:
Thalia 2015-11-25 14:43:41 -08:00
parent bd36680d21
commit dfbce3f5ce
1 changed files with 1 additions and 0 deletions

View File

@ -224,6 +224,7 @@ ve.ui.MWMathDialog.prototype.getSetupProcess = function ( data ) {
ve.ui.MWMathDialog.prototype.getReadyProcess = function ( data ) {
return ve.ui.MWMathDialog.super.prototype.getReadyProcess.call( this, data )
.next( function () {
this.input.focus().moveCursorToEnd();
return this.symbolsPromise;
}, this );
};