Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/platform/keyboardLayout/common/keyboardLayoutService.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 { Event } from '../../../base/common/event.js';
7
import { IKeyboardLayoutInfo, IKeyboardMapping } from './keyboardLayout.js';
8
9
export interface IKeyboardLayoutData {
10
keyboardLayoutInfo: IKeyboardLayoutInfo;
11
keyboardMapping: IKeyboardMapping;
12
}
13
14
export interface INativeKeyboardLayoutService {
15
readonly _serviceBrand: undefined;
16
readonly onDidChangeKeyboardLayout: Event<IKeyboardLayoutData>;
17
getKeyboardLayoutData(): Promise<IKeyboardLayoutData>;
18
}
19
20