提交 2c43e3a6 编写于 作者: D Daniel Imms

Revert "Use keydown instead of keypress to close terminal"

This reverts commit f32ed90b.

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

Fixes #42066
上级 ba6e556f
......@@ -780,7 +780,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();
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册