Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/services/keybinding/browser/navigatorKeyboard.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
export interface IKeyboard {
7
getLayoutMap(): Promise<Object>;
8
lock(keyCodes?: string[]): Promise<void>;
9
unlock(): void;
10
addEventListener?(type: string, listener: () => void): void;
11
12
}
13
export type INavigatorWithKeyboard = Navigator & {
14
keyboard: IKeyboard;
15
};
16