Skip to content

Commit

Permalink
Focus terminal on closing search box (vercel#6230)
Browse files Browse the repository at this point in the history
  • Loading branch information
letsandeepio authored Jan 10, 2022
1 parent 8546374 commit 9f4687c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/components/term.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export default class Term extends React.PureComponent<TermProps> {

closeSearchBox = () => {
this.props.onCloseSearch();
this.term.focus();
};

resize(cols: number, rows: number) {
Expand Down

0 comments on commit 9f4687c

Please sign in to comment.