

def hotkey(*args, **kwargs):
    'Performs key down presses on the arguments passed in order, then performs\n    key releases in reverse order.\n\n    The effect is that calling hotkey(\'ctrl\', \'shift\', \'c\') would perform a\n    "Ctrl-Shift-C" hotkey/keyboard shortcut press.\n\n    Args:\n      key(s) (str): The series of keys to press, in order. This can also be a\n        list of key strings to press.\n      interval (float, optional): The number of seconds in between each press.\n        0.0 by default, for no pause in between presses.\n\n    Returns:\n      None\n    '
    interval = float(kwargs.get('interval', 0.0))
    _failSafeCheck()
    for c in args:
        if (len(c) > 1):
            c = c.lower()
        platformModule._keyDown(c)
        time.sleep(interval)
    for c in reversed(args):
        if (len(c) > 1):
            c = c.lower()
        platformModule._keyUp(c)
        time.sleep(interval)
    _autoPause(kwargs.get('pause', None), kwargs.get('_pause', True))

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py hotkey/original