mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Focus link inspector input prior to lookup."
This commit is contained in:
commit
c404079f61
|
@ -129,10 +129,12 @@ ve.ui.LinkInspector.prototype.onOpen = function () {
|
|||
// Wait for animation to complete
|
||||
this.surface.disable();
|
||||
setTimeout( ve.bind( function () {
|
||||
// Note: Focus input prior to setting target annotation
|
||||
this.targetInput.$input.focus();
|
||||
// Setup annotation
|
||||
this.initialAnnotationHash = initialAnnotation && ve.getHash( initialAnnotation );
|
||||
this.targetInput.setAnnotation( annotation );
|
||||
this.targetInput.$input.focus().select();
|
||||
this.targetInput.$input.select();
|
||||
this.surface.enable();
|
||||
}, this ), 200 );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue