From dfbce3f5ce6fef7473a40ac9b402f35dfcc8ae9e Mon Sep 17 00:00:00 2001 From: Thalia Date: Wed, 25 Nov 2015 14:43:41 -0800 Subject: [PATCH] Focus input and move cursor to end when MathDialog opens Change-Id: Ie963913723b8c5f8ffb32701477627387c77eb85 --- modules/ve-math/ve.ui.MWMathDialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-math/ve.ui.MWMathDialog.js b/modules/ve-math/ve.ui.MWMathDialog.js index ef9612a..7d22f6c 100644 --- a/modules/ve-math/ve.ui.MWMathDialog.js +++ b/modules/ve-math/ve.ui.MWMathDialog.js @@ -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 ); };