UNPKG

819 BTypeScriptView Raw
1import { KeyCollection, Event } from '../modules/shortcuts';
2export declare const isMacLike: () => boolean;
3export declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
4export declare const controlOrMetaKey: () => "meta" | "control";
5export declare const optionOrAltSymbol: () => "⌥" | "alt";
6export declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
7export declare const eventToShortcut: (e: KeyboardEvent) => KeyCollection | null;
8export declare const shortcutMatchesShortcut: (inputShortcut: KeyCollection, shortcut: KeyCollection) => boolean;
9export declare const eventMatchesShortcut: (e: Event, shortcut: KeyCollection) => boolean;
10export declare const keyToSymbol: (key: string) => string;
11export declare const shortcutToHumanString: (shortcut: KeyCollection) => string;