Path: blob/main/src/vs/base/test/common/keybindings.test.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import assert from 'assert';6import { KeyCode, ScanCode } from '../../common/keyCodes.js';7import { KeyCodeChord, ScanCodeChord } from '../../common/keybindings.js';8import { ensureNoDisposablesAreLeakedInTestSuite } from './utils.js';910suite('keyCodes', () => {1112ensureNoDisposablesAreLeakedInTestSuite();1314test('issue #173325: wrong interpretations of special keys (e.g. [Equal] is mistaken for V)', () => {15const a = new KeyCodeChord(true, false, false, false, KeyCode.KeyV);16const b = new ScanCodeChord(true, false, false, false, ScanCode.Equal);17assert.strictEqual(a.getHashCode() === b.getHashCode(), false);18});1920});212223