TTkKeyEvent_SpecialKey🌶️

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

Bases: TTkKeyEvent

Keyboard event for a non-character key press.

The type is TTkK.SpecialKey and key stores the resolved key constant.

Parameters:
  • key (int) – The resolved special-key constant

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

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

TTkKeyEvent_SpecialKey Attributes🌶️

code

key

mod

type