@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
9 lines (8 loc) • 417 B
TypeScript
import { getHotkeyHandler, HotkeyItemOptions } from './parse-hotkey';
export type { HotkeyItemOptions };
export { getHotkeyHandler };
export type HotkeyItem = [string, (event: KeyboardEvent) => void, HotkeyItemOptions?];
export declare function useHotkeys(hotkeys: HotkeyItem[], tagsToIgnore?: string[], triggerOnContentEditable?: boolean): void;
export declare namespace useHotkeys {
type Hotkey = HotkeyItem;
}