UNPKG

368 BTypeScriptView Raw
1/// <reference types="react" />
2/**
3 * Returns whether the keyboard event was triggered by Enter or Space, the two keys that are expected to trigger
4 * interactive elements like buttons.
5 */
6export declare function isKeyboardClick(event: React.KeyboardEvent<HTMLElement>): boolean;
7export declare function isArrowKey(event: React.KeyboardEvent<HTMLElement>): boolean;