提交 a896ac37 编写于 作者: D Daniel Imms

Prevent terminal waitOnExit from bubbling up

Fixes #19397
上级 ce6747a8
......@@ -418,8 +418,9 @@ export class TerminalInstance implements ITerminalInstance {
this._xterm.writeln(nls.localize('terminal.integrated.waitOnExit', 'Press any key to close the terminal'));
// Disable all input if the terminal is exiting and listen for next keypress
this._xterm.setOption('disableStdin', true);
this._processDisposables.push(DOM.addDisposableListener(this._xterm.textarea, 'keypress', () => {
this._processDisposables.push(DOM.addDisposableListener(this._xterm.textarea, 'keypress', (event: KeyboardEvent) => {
this.dispose();
event.preventDefault();
}));
} else {
this.dispose();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册