Merge "Focus input and move cursor to end when MathDialog opens"

This commit is contained in:
jenkins-bot 2015-11-25 22:50:27 +00:00 committed by Gerrit Code Review
commit a56ee3ee1b
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 );
};