mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 15:40:00 +00:00
Only give code mirror focus for specific commands
Previously focus was being called even for getContents, causing the editor to instantly steal focus from the edit summary input (!!). Change-Id: I5a14850d90a7c5605026e1fac192585ee62b4615
This commit is contained in:
parent
66ba217ba2
commit
53c64371dd
|
@ -227,7 +227,9 @@
|
|||
}
|
||||
|
||||
retval = fn[ command ].call( this, options );
|
||||
codeMirror.focus();
|
||||
if ( command === 'setSelection' ) {
|
||||
codeMirror.focus();
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue