提交 0fb1b17d 编写于 作者: R rebornix

Fix keymap lookup

上级 e257780a
......@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { IKeyboardLayoutInfo } from 'vs/workbench/services/keybinding/common/keymapService';
import { isWindows } from 'vs/base/common/platform';
function deserializeMapping(serializedMapping: ISerializedMapping) {
let mapping = serializedMapping;
......@@ -73,6 +74,10 @@ export class KeyboardLayoutInfo {
fuzzyEqual(other: IKeyboardMapping): boolean {
for (let key in other) {
if (isWindows && (key === 'Backslash' || key === 'KeyQ')) {
// keymap from Chromium is probably wrong.
continue;
}
if (this.value[key] === undefined) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册