From 8e249174cdf4ebe9e2a99801a689f506647c1267 Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Wed, 6 Aug 2025 10:53:51 -0400 Subject: [PATCH] Moved hotkey splitting into keypress handler --- libs/python/agent/agent/computer_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/python/agent/agent/computer_handler.py b/libs/python/agent/agent/computer_handler.py index 7425f59e..fb42295d 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: