提交 1c68a4e1 编写于 作者: A Alex

Use key instead of keyCode

上级 0ec49941
......@@ -329,7 +329,7 @@ export class TerminalInstance implements ITerminalInstance {
return false;
}
// Skip alt+F4
if (platform.isWindows && event.altKey && event.keyCode === 115 && !event.ctrlKey) {
if (platform.isWindows && event.altKey && event.key === 'F4' && !event.ctrlKey) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册