2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { KeyCode, KeyCodeUtils, IMMUTABLE_CODE_TO_KEY_CODE, ScanCode } from '../../../base/common/keyCodes.js';
7
>
import { SingleModifierChord, Chord, KeyCodeChord, Keybinding } from '../../../base/common/keybindings.js';
8
>
import { OperatingSystem } from '../../../base/common/platform.js';
9
>
import { BaseResolvedKeybinding } from './baseResolvedKeybinding.js';
10
>
import { toEmptyArrayIfContainsNull } from './resolvedKeybindingItem.js';
11
>
12
>
/**
13
>
* Do not instantiate. Use KeybindingService to get a ResolvedKeybinding seeded with information about the current kb layout.
14
>
*/
15
>
export class USLayoutResolvedKeybinding extends BaseResolvedKeybinding<KeyCodeChord> {
16
>
17
>
constructor(chords: KeyCodeChord[], os: OperatingSystem) {
18
super(os, chords);
19
}
21
>
private _keyCodeToUILabel(keyCode: KeyCode): string {
22
if (this._os === OperatingSystem.Macintosh) {
23
switch (keyCode) {