GitHub

API reference for Key.

A key pressed: its name ("a", "return", "up", "" for punctuation) and the modifiers held.

Attributes

AttributeTypeDescription
namestr
ctrlbool = False
metabool = False
shiftbool = False

Functions

__init__

__init__(name, ctrl=False, meta=False, shift=False) -> None
ParameterTypeDescription
namestr
ctrlbool = False
metabool = False
shiftbool = False