hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

event-get-key

Gets the key that was pressed in a keyboard event.
Parameter
Type
Description
self
event
The keyboard event object.
ignore-layout
bool
If true, returns the physical key code ignoring keyboard layout. If false, returns the key value based on the layout.
return
string
The key code or key value as a string.