sussudio
Version:
An unofficial VS Code Internal API
20 lines (19 loc) • 1.05 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ResolvedKeybinding, Keybinding } from "../../../base/common/keybindings.mjs";
import { IKeyboardEvent } from "../../keybinding/common/keybinding.mjs";
export interface IKeyboardMapper {
dumpDebugInfo(): string;
resolveKeyboardEvent(keyboardEvent: IKeyboardEvent): ResolvedKeybinding;
resolveKeybinding(keybinding: Keybinding): ResolvedKeybinding[];
}
export declare class CachedKeyboardMapper implements IKeyboardMapper {
private _actual;
private _cache;
constructor(actual: IKeyboardMapper);
dumpDebugInfo(): string;
resolveKeyboardEvent(keyboardEvent: IKeyboardEvent): ResolvedKeybinding;
resolveKeybinding(keybinding: Keybinding): ResolvedKeybinding[];
}