Skip to content

Commit

Permalink
Merge pull request #33935 from ihalip/fix-30994
Browse files Browse the repository at this point in the history
fixed the terminal and find widget key presses
  • Loading branch information
Tyriar committed Sep 11, 2017
2 parents 7bed94d + f07043b commit 48bfb73
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -412,10 +412,8 @@ export class TerminalInstance implements ITerminalInstance {
}

public notifyFindWidgetFocusChanged(isFocused: boolean): void {
// In order to support escape to close the find widget when the terminal
// is focused terminalFocus needs to be true when either the terminal or
// the find widget are focused.
this._terminalFocusContextKey.set(isFocused || document.activeElement === this._xterm.textarea);
const terminalFocused = !isFocused && (document.activeElement === this._xterm.textarea || document.activeElement === this._xterm.element);
this._terminalFocusContextKey.set(terminalFocused);
}

public dispose(): void {
Expand Down

0 comments on commit 48bfb73

Please sign in to comment.