mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 14:27:10 +00:00
Set focus on editor after tab switch
This sets the focus on the editor (and thus reveals cursor position) between editor changes (style to text to meta and back).
This commit is contained in:
1 parent
c41116e6c8
commit
afa1e7974a
1 file changed
+1
@@ -82,6 +82,7 @@ const Editor = createClass({
|
||||
if(prevProps.moveSource !== this.props.moveSource) {
|
||||
this.sourceJump();
|
||||
};
|
||||
this.codeEditor.current?.codeMirror.focus();
|
||||
},
|
||||
|
||||
handleControlKeys : function(e){
|
||||
|
||||
Reference in new issue
Block a user