UNPKG

548 BTypeScriptView Raw
1export declare const BACKSPACE = 8;
2export declare const TAB = 9;
3export declare const ENTER = 13;
4export declare const SHIFT = 16;
5export declare const ESCAPE = 27;
6export declare const SPACE = 32;
7export declare const ARROW_LEFT = 37;
8export declare const ARROW_UP = 38;
9export declare const ARROW_RIGHT = 39;
10export declare const ARROW_DOWN = 40;
11export declare const DELETE = 46;
12/** Returns whether the key code is `enter` or `space`, the two keys that can click a button. */
13export declare function isKeyboardClick(keyCode: number): boolean;