Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
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.