Console
hyTags
Home
Home
Documentation
Documentation
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.
Test Case:
Get key from keyboard event
<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