triggerHotkeyByKeySequence method

Future<void> triggerHotkeyByKeySequence({
  1. String? keyId,
  2. KeyModifiers? keyModifiers,
})

Triggers a hotkey using a sequence of keys.

  • Complexity Rating: 4/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<void> triggerHotkeyByKeySequence(
        {String? keyId, KeyModifiers? keyModifiers}) async =>
    await obsWebSocket.sendRequest(Request(
      'TriggerHotkeyByKeySequence',
      requestData: {
        'keyId': keyId,
        'keyModifiers': keyModifiers?.toJson(),
      }..removeWhere((key, value) => value == null),
    ));