foo-webview-sdk
    Preparing search index...

    Interface KeyboardRegisterHotkeyParams

    Parameters for keyboard.registerHotkey. Register a system-wide hotkey. When it is pressed the registering window receives keyboard:hotkey with { id, key, action }, whichever program has the focus. The combination must hold Ctrl, Alt or Win, except a media key alone; Ctrl+A, C, V, X, Y, Z, Ctrl+Shift+Z, Alt+F4, Alt+Tab, Alt+Space and Ctrl+Esc are refused too, all with INVALID_PARAMS. A combination a window of this component already holds fails with OPERATION_FAILED naming that window; one Windows refuses, because another program or a global foobar2000 shortcut holds it, fails with OPERATION_FAILED and the Windows error in details.win32Error. The hotkey is released when the registering page navigates or reloads and when its window closes.

    interface KeyboardRegisterHotkeyParams {
        action: string;
        global?: boolean;
        key: string;
    }
    Index
    action: string

    Action name reported back in the keyboard:hotkey payload.

    global?: boolean

    Recorded on the entry and reported by getRegisteredHotkeys; the hotkey is registered system-wide either way.

    true
    
    key: string

    The combination to register.