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

Don't close waitOnExit terminals when pressing modifier keys

Fixes #42066
上级 5755810a
......@@ -784,6 +784,12 @@ export class TerminalInstance implements ITerminalInstance {
private _attachPressAnyKeyToCloseListener() {
this._processDisposables.push(dom.addDisposableListener(this._xterm.textarea, 'keydown', (event: KeyboardEvent) => {
switch (event.key) {
case 'Meta':
case 'Shift':
case 'Alt':
case 'Control': return;
}
this.dispose();
event.preventDefault();
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册