CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Interface KeyboardShortcutContextValue

    Keyboard shortcut context value

    interface KeyboardShortcutContextValue {
        isEnabled: boolean;
        platform: Platform;
        registerShortcut: (shortcut: KeyboardShortcut) => void;
        setEnabled: (enabled: boolean) => void;
        setShowHelp: (show: boolean) => void;
        shortcuts: ShortcutMap;
        showHelp: boolean;
        unregisterShortcut: (id: string) => void;
    }
    Index

    Properties

    isEnabled: boolean

    Check if shortcuts are enabled

    platform: Platform

    Get current platform

    registerShortcut: (shortcut: KeyboardShortcut) => void

    Register a new shortcut

    setEnabled: (enabled: boolean) => void

    Enable/disable all shortcuts

    setShowHelp: (show: boolean) => void

    Set help modal visibility

    shortcuts: ShortcutMap

    All registered shortcuts

    showHelp: boolean

    Toggle help modal visibility

    unregisterShortcut: (id: string) => void

    Unregister a shortcut by id