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:
@@ -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