mirror of
https://github.com/trycua/computer.git
synced 2026-01-07 22:10:02 -06:00
fixed hotkey key expansion
This commit is contained in:
@@ -167,7 +167,7 @@ class BaseAutomationHandler(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def hotkey(self, *keys: str) -> Dict[str, Any]:
|
||||
async def hotkey(self, keys: List[str]) -> Dict[str, Any]:
|
||||
"""Press a combination of keys together."""
|
||||
pass
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ class WindowsAutomationHandler(BaseAutomationHandler):
|
||||
except Exception as e:
|
||||
return {"success": False, "error": str(e)}
|
||||
|
||||
async def hotkey(self, keys: str) -> Dict[str, Any]:
|
||||
async def hotkey(self, keys: List[str]) -> Dict[str, Any]:
|
||||
if not pyautogui:
|
||||
return {"success": False, "error": "pyautogui not available"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user