mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 14:33:07 +00:00
Merge pull request #3699 from Gazook89/Focus-Editor-After-Switch
Set Focus on Editor after Tab Switches
This commit is contained in:
@@ -113,7 +113,10 @@ const Editor = createClass({
|
|||||||
this.props.setMoveArrows(newView === 'text');
|
this.props.setMoveArrows(newView === 'text');
|
||||||
this.setState({
|
this.setState({
|
||||||
view : newView
|
view : newView
|
||||||
}, this.updateEditorSize); //TODO: not sure if updateeditorsize needed
|
}, ()=>{
|
||||||
|
this.codeEditor.current?.codeMirror.focus();
|
||||||
|
this.updateEditorSize();
|
||||||
|
}); //TODO: not sure if updateeditorsize needed
|
||||||
},
|
},
|
||||||
|
|
||||||
getCurrentPage : function(){
|
getCurrentPage : function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user