mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
codeedit: on close, if we're focused, give focus back to the input box
This commit is contained in:
parent
17fef0341d
commit
b9ff6bd20f
@ -203,6 +203,9 @@ class SourceCodeRenderer extends React.Component<
|
||||
this.setState({ message: null });
|
||||
}, 3000);
|
||||
});
|
||||
if (this.props.shouldFocus) {
|
||||
GlobalCommandRunner.screenSetFocus("input");
|
||||
}
|
||||
};
|
||||
|
||||
handleEditorChange = (code) => {
|
||||
|
Loading…
Reference in New Issue
Block a user