51 Key_F1, Key_F2, Key_F3, Key_F4,
52 Key_F5, Key_F6, Key_F7, Key_F8,
53 Key_F9, Key_F10, Key_F11, Key_F12
86 bool isShift()
const {
return _modifiers & ShiftModifier; }
89 bool isCtrl()
const {
return _modifiers & CtrlModifier; }
92 bool isAlt()
const {
return _modifiers & AltModifier; }
95 bool isMeta()
const {
return _modifiers & MetaModifier; }
Base class for the event system.
Definition event.h:29
Type type() const
Returns the type identifier for this event.
Definition event.h:71
Event delivered when a key is pressed or released.
Definition keyevent.h:22
Key key() const
Returns the key code.
Definition keyevent.h:77
static const Type KeyPress
Event type ID for KeyEvent.
Definition keyevent.h:25
uint8_t modifiers() const
Returns the modifier flags.
Definition keyevent.h:80
Key
Key code enumeration.
Definition keyevent.h:30
static const Type KeyRelease
Event type ID for KeyRelease (rarely used in TUI).
Definition keyevent.h:27
Modifier
Modifier flags.
Definition keyevent.h:57
bool isCtrl() const
Returns true if the Ctrl modifier is set.
Definition keyevent.h:89
static String keyName(Key key)
Returns a human-readable name for the given key code.
bool isMeta() const
Returns true if the Meta modifier is set.
Definition keyevent.h:95
static String modifierString(uint8_t modifiers)
Returns a human-readable string for the given modifier flags (e.g. "Ctrl+Shift+").
bool isShift() const
Returns true if the Shift modifier is set.
Definition keyevent.h:86
bool isAlt() const
Returns true if the Alt modifier is set.
Definition keyevent.h:92
const String & text() const
Returns the printable text.
Definition keyevent.h:83
KeyEvent(Type type, Key key, uint8_t modifiers=NoModifier, const String &text=String())
Constructs a KeyEvent.
Definition keyevent.h:72
Dynamic array container wrapping std::vector.
Definition list.h:40
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19