mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
fix terminal losing focus after opening context menu
Fixes https://github.com/pybricks/support/issues/170
This commit is contained in:
@@ -136,6 +136,11 @@ class Terminal extends React.Component<TerminalProps> {
|
||||
</Menu>
|
||||
);
|
||||
}
|
||||
|
||||
onContextMenuClose = () => {
|
||||
// without this, the terminal looses focus
|
||||
this.xterm.focus();
|
||||
};
|
||||
}
|
||||
|
||||
const mapStateToProps = (state: RootState): StateProps => ({
|
||||
|
||||
Reference in New Issue
Block a user