提交 65cfa78f 编写于 作者: A Alex Dima

Fixes #15227: Electron doesn't support numpad keys

上级 b34dfa9b
......@@ -61,6 +61,11 @@ export class Keybinding {
// Electron cannot handle chords
return null;
}
let keyCode = BinaryKeybindings.extractKeyCode(value);
if (keyCode >= KeyCode.NUMPAD_0 && keyCode <= KeyCode.NUMPAD_DIVIDE) {
// Electron cannot handle numpad keys
return null;
}
return _asString(value, ElectronAcceleratorLabelProvider.INSTANCE, Platform);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册