struct EE::UI::AccessibilityShortcut¶
Overview¶
A keyboard shortcut, both as displayed and decomposed for native APIs that want their own format (GTK accelerators on AT-SPI, command characters on macOS). More…
#include <accessibility.hpp> struct AccessibilityShortcut { // enums enum Modifier; // fields std::string text; std::string key; Uint8 modifiers { 0 }; // methods bool empty() const; };
Detailed Documentation¶
A keyboard shortcut, both as displayed and decomposed for native APIs that want their own format (GTK accelerators on AT-SPI, command characters on macOS).
Fields¶
std::string text
As displayed to the user (UTF-8), for example “Ctrl+S”.
std::string key
The platform key name (UTF-8), for example “S”, “F5” or “Return”.