mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
codeedit: on close, if we're focused, give focus back to the input box
This commit is contained in:
@@ -203,6 +203,9 @@ class SourceCodeRenderer extends React.Component<
|
|||||||
this.setState({ message: null });
|
this.setState({ message: null });
|
||||||
}, 3000);
|
}, 3000);
|
||||||
});
|
});
|
||||||
|
if (this.props.shouldFocus) {
|
||||||
|
GlobalCommandRunner.screenSetFocus("input");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
handleEditorChange = (code) => {
|
handleEditorChange = (code) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user