Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/base/test/common/keybindings.test.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
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 assert from 'assert';
7
import { KeyCode, ScanCode } from '../../common/keyCodes.js';
8
import { KeyCodeChord, ScanCodeChord } from '../../common/keybindings.js';
9
import { ensureNoDisposablesAreLeakedInTestSuite } from './utils.js';
10
11
suite('keyCodes', () => {
12
13
ensureNoDisposablesAreLeakedInTestSuite();
14
15
test('issue #173325: wrong interpretations of special keys (e.g. [Equal] is mistaken for V)', () => {
16
const a = new KeyCodeChord(true, false, false, false, KeyCode.KeyV);
17
const b = new ScanCodeChord(true, false, false, false, ScanCode.Equal);
18
assert.strictEqual(a.getHashCode() === b.getHashCode(), false);
19
});
20
21
});
22
23