fixed hotkey key expansion

This commit is contained in:
Dillon DuPont
2025-08-29 12:41:20 -04:00
parent 91f7a8e803
commit 51230a3349
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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"}