TTkKeyEvent_Character🌶️

class TTkKeyEvent_Character(key: int | str, code: str, mod: int)[source]🌶️

Bases: TTkKeyEvent

Keyboard event for a literal character input.

The type is TTkK.Character and key stores the character itself.

Parameters:
  • key (str) – The character that was typed

  • code (str) – The terminal code used to represent this input

  • mod (TTkConstant.KeyModifier) – The modifier state associated with the input

TTkKeyEvent_Character Attributes🌶️

code

key

mod

type