hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

event-modifier-key-pressed

Checks if a modifier key was pressed during the event.
Parameter
Type
Description
self
event
The keyboard or mouse event object.
name
string
The name of the modifier key: ctrl, alt, shift, or meta.
return
bool
True if the modifier key was pressed, false otherwise.