shortcutter
Version:
Tiny, dependency-free library to manage keyboard shortcuts in your application.
5 lines (4 loc) • 304 B
TypeScript
import { PHASES } from './types';
export declare function normalizeKeyCode(code: string): string;
export declare function normalizeShortcut(keys: string[]): string;
export declare function phasesIterator(phases: PHASES, shortcut: string, callback: (phasedShortcut: string, phase: PHASES) => void): void;