jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
DLynch: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I2694b6ddd476798b29d2aeb9d3eb4f162da49f7c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: DLynch <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits