Skip to content

Commit

Permalink
focus terminal on escape of the help menu (#173964)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Feb 9, 2023
1 parent 49055d2 commit a338e70
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2698,6 +2698,7 @@ class AccessibilityHelpWidget extends Widget implements ITerminalWidget {
this._register(dom.addStandardDisposableListener(this._contentDomNode.domNode, 'keydown', (e) => {
if (e.keyCode === KeyCode.Escape) {
this.hide();
instance.focus();
}
}));
this._register(instance.onDidFocus(() => this.hide()));
Expand Down

0 comments on commit a338e70

Please sign in to comment.