hotKey static method

Future<void> hotKey(
  1. List<String> keys
)

Simulate a hotkey press , e.g Ctrl+i Example usage

Keyboard.hoteKey(['ctrl', 'v'])
// Simulates Ctrl+V press

Implementation

static Future<void> hotKey(List<String> keys) async {
  if (keys.isNotEmpty) {
    await Process.run('python3', [
      kPath,
      'hotkey',
      jsonEncode(keys),
    ]);
  }
}