Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Win = WIN
LEFT_WIN = KeyModifier('LWin')
LWin = LEFT_WIN
RIGHT_WIN = KeyModifier('RWin')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
Shift = SHIFT
LEFT_SHIFT = KeyModifier("LShift")
LShift = LEFT_SHIFT
RIGHT_SHIFT = KeyModifier('RShift')
RShift = RIGHT_SHIFT
NUMPAD_DOT = Key('NumpadDot')
NumpadDot = NUMPAD_DOT
NUMPAD_DEL = Key('NumpadDel')
NumpadDel = NUMPAD_DEL
NUM_LOCK = Key('NumLock')
DOWN = Key('Down')
Down = DOWN
LEFT = Key('Left')
Left = LEFT
RIGHT = Key('Right')
Right = RIGHT
DELETE = Key('Delete')
DEL = DELETE
Delete = DELETE
Del = DELETE
WIN = KeyModifier('Win')
Win = WIN
LEFT_WIN = KeyModifier('LWin')
LWin = LEFT_WIN
RIGHT_WIN = KeyModifier('RWin')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
Shift = SHIFT
LEFT_SHIFT = KeyModifier("LShift")
LShift = LEFT_SHIFT
RIGHT_SHIFT = KeyModifier('RShift')
RShift = RIGHT_SHIFT
NUMPAD_DOT = Key('NumpadDot')
NumpadDot = NUMPAD_DOT
NUMPAD_DEL = Key('NumpadDel')
NumpadDel = NUMPAD_DEL
NUM_LOCK = Key('NumLock')
NumLock = NUM_LOCK
NUMPAD_ADD = Key('NumpadAdd')
NUMPAD_DIV = Key('NumpadDiv')
NUMPAD_SUB = Key('NumpadSub')
NUMPAD_MULT = Key('NumpadMult')
NUMPAD_ENTER = Key('NumpadEnter')
NumpadAdd = NUMPAD_ADD
NumpadDiv = NUMPAD_DIV
LEFT = Key('Left')
Left = LEFT
RIGHT = Key('Right')
Right = RIGHT
DELETE = Key('Delete')
DEL = DELETE
Delete = DELETE
Del = DELETE
WIN = KeyModifier('Win')
Win = WIN
LEFT_WIN = KeyModifier('LWin')
LWin = LEFT_WIN
RIGHT_WIN = KeyModifier('RWin')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
Shift = SHIFT
LEFT_SHIFT = KeyModifier("LShift")
LShift = LEFT_SHIFT
RIGHT_SHIFT = KeyModifier('RShift')
RShift = RIGHT_SHIFT
NUMPAD_DOT = Key('NumpadDot')
NumpadDot = NUMPAD_DOT
NUMPAD_DEL = Key('NumpadDel')
NumpadDel = NUMPAD_DEL
NUM_LOCK = Key('NumLock')
NumLock = NUM_LOCK
NUMPAD_ADD = Key('NumpadAdd')
NUMPAD_DIV = Key('NumpadDiv')
NUMPAD_SUB = Key('NumpadSub')
def __init__(self, *modifiers):
self._s = None
self.modifiers = list(modifiers)
assert all([isinstance(key, KeyModifier) for key in self.modifiers]), 'Keys must be modifiers'
LWin = LEFT_WIN
RIGHT_WIN = KeyModifier('RWin')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
Shift = SHIFT
LEFT_SHIFT = KeyModifier("LShift")
LShift = LEFT_SHIFT
RIGHT_SHIFT = KeyModifier('RShift')
RShift = RIGHT_SHIFT
NUMPAD_DOT = Key('NumpadDot')
NumpadDot = NUMPAD_DOT
NUMPAD_DEL = Key('NumpadDel')
NumpadDel = NUMPAD_DEL
NUM_LOCK = Key('NumLock')
NumLock = NUM_LOCK
NUMPAD_ADD = Key('NumpadAdd')
UP = Key('Up')
Up = UP
DOWN = Key('Down')
Down = DOWN
LEFT = Key('Left')
Left = LEFT
RIGHT = Key('Right')
Right = RIGHT
DELETE = Key('Delete')
DEL = DELETE
Delete = DELETE
Del = DELETE
WIN = KeyModifier('Win')
Win = WIN
LEFT_WIN = KeyModifier('LWin')
LWin = LEFT_WIN
RIGHT_WIN = KeyModifier('RWin')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
Shift = SHIFT
LEFT_SHIFT = KeyModifier("LShift")
LShift = LEFT_SHIFT
RIGHT_SHIFT = KeyModifier('RShift')
RShift = RIGHT_SHIFT
NUMPAD_DOT = Key('NumpadDot')
NumpadDot = NUMPAD_DOT
NUMPAD_DEL = Key('NumpadDel')
NumpadDel = NUMPAD_DEL
NUM_LOCK = Key('NumLock')
NumLock = NUM_LOCK
NUMPAD_ADD = Key('NumpadAdd')
NUMPAD_DIV = Key('NumpadDiv')
NUMPAD_SUB = Key('NumpadSub')
NUMPAD_MULT = Key('NumpadMult')
NUMPAD_ENTER = Key('NumpadEnter')
NumpadAdd = NUMPAD_ADD
NumpadDiv = NUMPAD_DIV
NumpadSub = NUMPAD_SUB
NumpadMult = NUMPAD_MULT
Del = DELETE
WIN = KeyModifier('Win')
Win = WIN
LEFT_WIN = KeyModifier('LWin')
LWin = LEFT_WIN
RIGHT_WIN = KeyModifier('RWin')
RWin = RIGHT_WIN
CONTROL = KeyModifier('Control')
Control = CONTROL
CTRL = CONTROL
Ctrl = CONTROL
LEFT_CONTROL = KeyModifier('LControl')
LCtrl = LEFT_CONTROL
LControl = LEFT_CONTROL
RIGHT_CONTROL = KeyModifier('RControl')
RCtrl = RIGHT_CONTROL
RControl = RIGHT_CONTROL
ALT = KeyModifier('Alt')
Alt = ALT
LEFT_ALT = KeyModifier('LAlt')
LAlt = LEFT_ALT
RIGHT_ALT = KeyModifier('RAlt')
RAlt = RIGHT_ALT
SHIFT = KeyModifier('Shift')
Shift = SHIFT
LEFT_SHIFT = KeyModifier("LShift")
LShift = LEFT_SHIFT
RIGHT_SHIFT = KeyModifier('RShift')
RShift = RIGHT_SHIFT
NUMPAD_DOT = Key('NumpadDot')
NumpadDot = NUMPAD_DOT