Skip to content

KeyModifiers (TriggerHotkeyByKeySequence) has wrong types #194

Closed
@kpaulisse

Description

@kpaulisse

type KeyModifiers struct {
Shift string `json:"face"`
Control int `json:"flags"`
Alt int `json:"size"`
Command string `json:"style"`
}

This struct should have each of the key modifiers as a boolean, and the JSON annotations look incorrect.

FWIW, here are a couple raw websocket requests that I used to successfully trigger hot keys by sequence:

{
    "op": 6,
    "d": {
        "requestType": "TriggerHotkeyByKeySequence",
        "requestId": "1",
        "requestData": {
            "keyId": "OBS_KEY_NUMPLUS",
            "keyModifiers": {
                "shift": true,
                "control": true,
                "alt": true
            }
        }
    }
}
{
    "op": 6,
    "d": {
        "requestType": "TriggerHotkeyByKeySequence",
        "requestId": "1",
        "requestData": {
            "keyId": "OBS_KEY_NUMPLUS",
            "keyModifiers": {
                "shift": true,
                "control": true,
                "command": true
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions