Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/285386

Change subject: Move cursor to end when switching to external
......................................................................

Move cursor to end when switching to external

Bug: T133677
Change-Id: I2694b6ddd476798b29d2aeb9d3eb4f162da49f7c
---
M modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/86/285386/1

diff --git a/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js 
b/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
index 69dbbd8..193cb7e 100644
--- a/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
+++ b/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
@@ -135,6 +135,8 @@
                ve.init.platform.getExternalLinkUrlProtocolsRegExp().test( href 
)
        ) {
                this.linkTypeIndex.setCard( 'external' );
+               // Changing card focuses and selects the input, so collapse the 
cursor back to the end.
+               
this.externalAnnotationInput.getTextInputWidget().moveCursorToEnd();
        }
        this.updateActions();
 };

-- 
To view, visit https://gerrit.wikimedia.org/r/285386
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2694b6ddd476798b29d2aeb9d3eb4f162da49f7c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to