rich-text-editor
Version:
Rich text editor
21 lines (20 loc) • 506 B
TypeScript
type Shortcut = {
key: string;
meta?: boolean;
ctrl?: boolean;
shift?: boolean;
};
export declare function isMatch(event: KeyboardEvent, shortcut: Shortcut): boolean;
export declare const isMac: () => boolean;
export declare const getCmdOrCtrlLabel: () => "Cmd" | "Ctrl";
export declare const undoShortcut: {
meta: boolean;
key: string;
ctrl?: undefined;
} | {
ctrl: boolean;
key: string;
meta?: undefined;
};
export declare const redoShortcut: Shortcut;
export {};