codeedit: on close, if we're focused, give focus back to the input box

This commit is contained in:
sawka 2023-09-15 17:24:38 -07:00
parent 17fef0341d
commit b9ff6bd20f

View File

@ -203,6 +203,9 @@ class SourceCodeRenderer extends React.Component<
this.setState({ message: null });
}, 3000);
});
if (this.props.shouldFocus) {
GlobalCommandRunner.screenSetFocus("input");
}
};
handleEditorChange = (code) => {