50 std::string
code()
const;
61 std::string
key()
const;
A keyboard event class.
Definition keyboard_event.hpp:13
std::string key() const
Returns a string representing the key value of the key represented by the event.
Definition keyboard_event.cpp:33
bool altKey() const
Returns a boolean value that is true if the Alt (Option or ⌥ on macOS) key was active when the key ev...
Definition keyboard_event.cpp:8
std::string code() const
Returns a string with the code value of the physical key represented by the event.
Definition keyboard_event.cpp:23
bool ctrlKey() const
Returns a boolean value that is true if the Ctrl key was active when the key event was generated.
Definition keyboard_event.cpp:13
bool metaKey() const
Returns a boolean value that is true if the Meta key (on Mac keyboards, the ⌘ Command key; on Windows...
Definition keyboard_event.cpp:43
bool repeat() const
Returns a boolean value that is true if the key is being held down such that it is automatically repe...
Definition keyboard_event.cpp:48
bool shiftKey() const
Returns a boolean value that is true if the Shift key was active when the key event was generated.
Definition keyboard_event.cpp:18
bool isComposing() const
Returns a boolean value that is true if the event is fired between after compositionstart and before ...
Definition keyboard_event.cpp:28
int location() const
Returns a number representing the location of the key on the keyboard or other input device.
Definition keyboard_event.cpp:38
The UIEvent interface represents simple user interface events.
Definition ui_event.hpp:14
Definition abort_controller.hpp:8
emscripten::val val
Definition val.hpp:5