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:
Gazook89 committed 2024-09-02 21:07:19 -05:00
1 parent c41116e6c8
commit afa1e7974a
1 file changed
+1
+1
View File
@@ -82,6 +82,7 @@ const Editor = createClass({
if(prevProps.moveSource !== this.props.moveSource) {
this.sourceJump();
};
this.codeEditor.current?.codeMirror.focus();
},
handleControlKeys : function(e){