UNPKG

@coreui/react

Version:

UI Components Library for React.js

12 lines (11 loc) 817 B
import type { SearchButtonShortcut } from './types'; export declare const normalizeKey: (key: string) => string; export declare const parseShortcut: (shortcut: string) => SearchButtonShortcut[]; export declare const isMacOS: () => boolean; export declare const getPreferredShortcut: (shortcuts: SearchButtonShortcut[]) => SearchButtonShortcut; export declare const getKeyLabel: (key: string) => string; export declare const formatShortcutTokens: (shortcut: string) => string[]; export declare const getPressedKeys: (event: KeyboardEvent) => Set<string>; export declare const isEditableTarget: (target: EventTarget | null) => boolean; export declare const shouldIgnoreShortcut: (event: KeyboardEvent) => boolean; export declare const matchesShortcut: (shortcut: SearchButtonShortcut, event: KeyboardEvent) => boolean;