hotKey static method
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),
]);
}
}