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:
Ed Sanders 2017-03-22 11:47:16 +00:00
parent 66ba217ba2
commit 53c64371dd

View file

@ -227,7 +227,9 @@
}
retval = fn[ command ].call( this, options );
codeMirror.focus();
if ( command === 'setSelection' ) {
codeMirror.focus();
}
return retval;
}