0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +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:
Gazook89
2024-09-02 21:07:19 -05:00
parent c41116e6c8
commit afa1e7974a

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){