Console
hyTags
Home
Home
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.
Test Case:
Check modifier key pressed
<div></div>
<div></div>
<bool-true> <assert-true>
<bool-true> <assert-true>
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed