diff --git a/src/components/Terminal.tsx b/src/components/Terminal.tsx index 1a612fed..7bf3558c 100644 --- a/src/components/Terminal.tsx +++ b/src/components/Terminal.tsx @@ -136,6 +136,11 @@ class Terminal extends React.Component { ); } + + onContextMenuClose = () => { + // without this, the terminal looses focus + this.xterm.focus(); + }; } const mapStateToProps = (state: RootState): StateProps => ({