25
26
public resolveKeyboardEvent(keyboardEvent: IKeyboardEvent): ResolvedKeybinding {
27
>
const ctrlKey = keyboardEvent.ctrlKey || (this._mapAltGrToCtrlAlt && keyboardEvent.altGraphKey);
fallbackKeyboardMapper.ts
28
>
const altKey = keyboardEvent.altKey || (this._mapAltGrToCtrlAlt && keyboardEvent.altGraphKey);
29
>
const chord = new KeyCodeChord(
30
>
ctrlKey,
31
>
keyboardEvent.shiftKey,
32
>
altKey,
33
>
keyboardEvent.metaKey,
34
>
keyboardEvent.keyCode
35
>
);
36
>
const result = this.resolveKeybinding(new Keybinding([chord]));
37
>
return result[0];
38
>
}
39
40
public resolveKeybinding(keybinding: Keybinding): ResolvedKeybinding[] {