mirror of
https://github.com/trycua/computer.git
synced 2026-05-07 15:42:32 -05:00
Fix hotkeys on windows
This commit is contained in:
@@ -277,7 +277,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: str) -> Dict[str, Any]:
|
||||
if not pyautogui:
|
||||
return {"success": False, "error": "pyautogui not available"}
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
"""Windows Sandbox provider for CUA Computer."""
|
||||
|
||||
try:
|
||||
import winsandbox
|
||||
HAS_WINSANDBOX = True
|
||||
except ImportError:
|
||||
HAS_WINSANDBOX = False
|
||||
|
||||
from .provider import WinSandboxProvider
|
||||
|
||||
__all__ = ["WinSandboxProvider", "HAS_WINSANDBOX"]
|
||||
Reference in New Issue
Block a user