Home > @uniformdev/design-system > UseShortcutOptions

UseShortcutOptions type

Signature:

type UseShortcutOptions = {
    shortcut: string | null;
    macShortcut?: string | null;
    handler: (event: KeyboardEvent | undefined) => void;
    doNotPreventDefault?: boolean;
    activeWhenEditing?: boolean;
    disabled?: boolean;
};