Focus input and move cursor to end when MathDialog opens
Change-Id: Ie963913723b8c5f8ffb32701477627387c77eb85
This commit is contained in:
parent
bd36680d21
commit
dfbce3f5ce
|
@ -224,6 +224,7 @@ ve.ui.MWMathDialog.prototype.getSetupProcess = function ( data ) {
|
||||||
ve.ui.MWMathDialog.prototype.getReadyProcess = function ( data ) {
|
ve.ui.MWMathDialog.prototype.getReadyProcess = function ( data ) {
|
||||||
return ve.ui.MWMathDialog.super.prototype.getReadyProcess.call( this, data )
|
return ve.ui.MWMathDialog.super.prototype.getReadyProcess.call( this, data )
|
||||||
.next( function () {
|
.next( function () {
|
||||||
|
this.input.focus().moveCursorToEnd();
|
||||||
return this.symbolsPromise;
|
return this.symbolsPromise;
|
||||||
}, this );
|
}, this );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue