1
>
/*---------------------------------------------------------------------------------------------
keybindingsTestUtils.ts
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 { decodeKeybinding, ResolvedKeybinding } from '../../../../base/common/keybindings.js';
7
>
import { OperatingSystem } from '../../../../base/common/platform.js';
8
>
import { USLayoutResolvedKeybinding } from '../../common/usLayoutResolvedKeybinding.js';
9
>
10
>
export function createUSLayoutResolvedKeybinding(encodedKeybinding: number | number[], OS: OperatingSystem): ResolvedKeybinding | undefined {
11
if (encodedKeybinding === 0) {
12
return undefined;