@arco-vue-pro-components/pro-components
Version:
基于@arco-design/web-vue组件的高级组件,包括pro-table
25 lines (24 loc) • 601 B
TypeScript
export declare const KEYBOARD_KEY: {
ENTER: string;
ESC: string;
BACKSPACE: string;
TAB: string;
SPACE: string;
ARROW_UP: string;
ARROW_DOWN: string;
ARROW_LEFT: string;
ARROW_RIGHT: string;
};
export interface CodeKey {
/** Keyboard key */
key: string;
/** Ctrl / ⌃ */
ctrl?: boolean;
/** Shift key */
shift?: boolean;
/** Alt / ⌥ */
alt?: boolean;
/** meta ⌘ / ⊞ */
meta?: boolean;
}
export declare const getKeyDownHandler: (codeKeyMap: Map<string | CodeKey, (e: Event) => void>) => (event: KeyboardEvent) => void;