Skip to content

Commit

Permalink
Revert "Use keydown instead of keypress to close terminal"
Browse files Browse the repository at this point in the history
This reverts commit f32ed90.

This caused problems with clicking/navigating/copying task output.

Fixes #42066
Tyriar committed Feb 12, 2018
1 parent 071e07b commit b8ba377
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -782,7 +782,7 @@ export class TerminalInstance implements ITerminalInstance {
}

private _attachPressAnyKeyToCloseListener() {
this._processDisposables.push(dom.addDisposableListener(this._xterm.textarea, 'keydown', (event: KeyboardEvent) => {
this._processDisposables.push(dom.addDisposableListener(this._xterm.textarea, 'keypress', (event: KeyboardEvent) => {
this.dispose();
event.preventDefault();
}));

0 comments on commit b8ba377

Please sign in to comment.