Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Moved hotkey splitting into keypress handler

Dillon DuPont8e249174cdf4
diff --git a/libs/python/agent/agent/computer_handler.py b/libs/python/agent/agent/computer_handler.py
index 7425f59e54..fb42295d9b 100644
--- a/libs/python/agent/agent/computer_handler.py
+++ b/libs/python/agent/agent/computer_handler.py
@@ -64,7 +64,7 @@ class OpenAIComputerHandler:
async def keypress(self, keys: Union[List[str], str]) -> None:
"""Press key combination."""
if isinstance(keys, str):
- keys = [keys]
+ keys = keys.replace("-", "+").split("+")
if len(keys) == 1:
await self.interface.press_key(keys[0])
else: