src/vs/base/common/ime.ts

36 LOC · 36 covered · 0 uncovered · 7 ranges · 28 concepts · 2 introducers · 20 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filesrc/vs/platform/keybinding/common/abstractKeybindingService.ts · 440 LOCcommon/abstractKeybindin…abstractKeybindingService.test|title=AbstractKeybindingService can trigger command that is sharing keybinding with chord|occurrence=1 · 0 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×1 · 6 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×1 · 7 introduced LOCabstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService simple tests: single- and multi-chord keybindings are dispatched a multi-chord keybinding is dispatched correctly|occurrence=1 · 0 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×1 · 2 introduced LOCabstractKeybindingServic…keybindingResolver.ts ×1 · 4 introduced LOCkeybindingResolver.ts ×1abstractKeybindingService.ts ×7 · 46 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×2 · 5 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×2 · 6 introduced LOCabstractKeybindingServic…null command ID|occurrence=1 · 0 introduced LOCnull command ID|occurren…abstractKeybindingService.test|title=AbstractKeybindingService can have spying command|occurrence=1 · 0 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×1 · 2 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×4 · 19 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×5 · 19 introduced LOCabstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding for command with context when context matches|occurrence=1, abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding when context does not match but enforceContextCheck is false|occurrence=1 · 0 introduced LOCabstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding even when label is empty string|occurrence=1, abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding label when command has a keybinding|occurrence=1 · 0 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×2 · 9 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×1 · 7 introduced LOCabstractKeybindingServic…keybindingResolver.ts ×2 · 9 introduced LOCkeybindingResolver.ts ×2abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is null|occurrence=1, abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is undefined|occurrence=1, +1 · 0 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×2 · 2 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×7 · 22 introduced LOCabstractKeybindingServic…keybindingResolver.ts ×1 · 2 introduced LOCkeybindingResolver.ts ×1abstractKeybindingService.ts ×1 · 2 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×4 · 10 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×1 · 1 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×2 · 2 introduced LOCabstractKeybindingServic…abstractKeybindingService.ts ×22 · 179 introduced LOCabstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding even when label is empty string|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding even when label is empty string|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding for command with context when context matches|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding for command with context when context matches|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding label when command has a keybinding|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding label when command has a keybinding|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding when context does not match but enforceContextCheck is false|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding appends keybinding when context does not match but enforceContextCheck is false|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when command has no keybinding|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when command has no keybinding|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is empty string|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is empty string|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is null|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is null|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is undefined|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when commandId is undefined|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when context does not match and enforceContextCheck is true|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService appendKeybinding returns only label when context does not match and enforceContextCheck is true|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService can have spying command|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService can have spying command|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService can trigger command that is sharing keybinding with chord|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService can trigger command that is sharing keybinding with chord|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService cannot trigger chord if command is overwriting|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService cannot trigger chord if command is overwriting|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService issue #16498: chord mode is quit for invalid chords|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService issue #16498: chord mode is quit for invalid chords|occurrence=1abstractKeybindingServic…abstractKeybindingService.test|title=AbstractKeybindingService issue #16833: Keybinding service should not testDispatch on modifier keys|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService issue #16833: Keybinding service should not testDispatch on modifier keys|occurrence=1abstractKeybindingServic…null command ID a multi-chord keybinding with a null command ID keeps the keybinding (shouldPreventDefault = true)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService keybindings with empty-string/null command ID a multi-chord keybinding with a null command ID keeps the keybinding (shouldPreventDefault = true)|occurrence=1null command ID a multi-…null command ID a multi-chord keybinding with an empty-string command ID keeps the keybinding (shouldPreventDefault = true)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService keybindings with empty-string/null command ID a multi-chord keybinding with an empty-string command ID keeps the keybinding (shouldPreventDefault = true)|occurrence=1null command ID a multi-…null command ID a single-chord keybinding with a null command ID unbinds the keybinding (shouldPreventDefault = false)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService keybindings with empty-string/null command ID a single-chord keybinding with a null command ID unbinds the keybinding (shouldPreventDefault = false)|occurrence=1null command ID a single…null command ID a single-chord keybinding with an empty string command ID unbinds the keybinding (shouldPreventDefault = false)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService keybindings with empty-string/null command ID a single-chord keybinding with an empty string command ID unbinds the keybinding (shouldPreventDefault = false)|occurrence=1null command ID a single…abstractKeybindingService.test|title=AbstractKeybindingService simple tests: single- and multi-chord keybindings are dispatched a multi-chord keybinding is dispatched correctly|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService simple tests: single- and multi-chord keybindings are dispatched a multi-chord keybinding is dispatched correctly|occurrence=1abstractKeybindingServic…null command ID|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/keybinding/test/common/abstractKeybindingService.test|title=AbstractKeybindingService simple tests: single- and multi-chord keybindings are dispatched a single-chord keybinding is dispatched correctly; this test makes sure the dispatch in general works before we test empty-string/null command ID|occurrence=1null command ID|occurren…Focused file · src/vs/base/common/ime.ts · 36 LOCcommon/ime.ts

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- abstractKeybindingService.ts ×22
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 { Emitter } from './event.js';
7 >
8 > export class IMEImpl {
9 >
10 > private readonly _onDidChange = new Emitter<void>();
11 > public readonly onDidChange = this._onDidChange.event;
12 >
13 > private _enabled = true;
14 >
15 > public get enabled() {
16 > return this._enabled; abstractKeybindingService.ts ×7
17 > }
19 > /**
20 > * Enable IME
21 > */
22 > public enable(): void {
23 > this._enabled = true; abstractKeybindingService.ts ×7
24 > this._onDidChange.fire();
25 > }
27 > /**
28 > * Disable IME
29 > */
30 > public disable(): void {
31 > this._enabled = false; abstractKeybindingService.ts ×7
32 > this._onDidChange.fire();
33 > }
35 >
36 > export const IME = new IMEImpl();