MCPcopy Create free account
hub / github.com/X-PLUG/MobileAgent / _normalize_key

Function _normalize_key

PC-Agent/pymac.py:78–80  ·  view source on GitHub ↗

Convert 'cmd' to 'command' for pyautogui compatibility

(key: str)

Source from the content-addressed store, hash-verified

76
77
78def _normalize_key(key: str) -> str:
79 """Convert 'cmd' to 'command' for pyautogui compatibility"""
80 return "command" if key == "cmd" else key
81
82
83def list_apps_in_directories(directories):

Callers 3

clickMethod · 0.70
hotkeyMethod · 0.70
hold_and_pressMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected