-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
goobs/api/typedefs/typedefs.go
Lines 76 to 81 in 444ded1
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
Labels
No labels