fix terminal losing focus after opening context menu

Fixes https://github.com/pybricks/support/issues/170
This commit is contained in:
David Lechner
2020-12-10 15:14:39 -06:00
parent d0de569a64
commit 91fbea13f4
+5
View File
@@ -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 => ({