wijjit.terminal.input.Key
- class wijjit.terminal.input.Key(name, key_type, char=None)[source]
Represents a keyboard key press.
- Parameters:
- __init__(name, key_type, char=None)
Methods
__init__(name, key_type[, char])Attributes
Check if this is a character key.
Check if this is a control key.
Check if this is Ctrl+C.
Check if this is a special key.
Get list of modifiers for this key.
- property is_char: bool
Check if this is a character key.
- Returns:
True if character key
- Return type:
- property is_special: bool
Check if this is a special key.
- Returns:
True if special key
- Return type: