PowerKeys Scripting API
    Preparing search index...

    Interface MouseButtonOptions

    Optional configuration for Mouse.OnButton, Mouse.OnDown, and Mouse.OnUp.

    interface MouseButtonOptions {
        block?: boolean;
        wildcard?: boolean;
        deviceId?: string;
    }
    Index
    block?: boolean

    If true, the matching mouse event is suppressed from reaching other applications. Defaults to true for Mouse.OnButton and Mouse.OnDown; defaults to false for Mouse.OnUp. Forced to false when deviceId is set.

    wildcard?: boolean

    If true (default), the combo's own modifiers are a minimum: a bare button binding still triggers while the user happens to be holding Ctrl+Shift, and "Ctrl+LButton" still requires Ctrl. Set to false to demand an exact modifier match, so the binding stays silent whenever any extra modifier is held.

    deviceId?: string

    Device path string to limit the binding to a specific physical mouse. Device-filtered bindings are always non-blocking.