JavaScript KeyboardEvent : UIEvent
Instance Properties
altKey : Boolean
Returns true
if the keyboard's alt (Option on Mac) key is pressed.
Example:
RunResults:
charCode : Number
The effective character. Only valid for keypress events. Use String.fromCharCode()
to get a string version of the pressed
character.
Example:
RunResults:
location : Number
One of DOM_KEY_LOCATION_STANDARD
, DOM_KEY_LOCATION_LEFT
, DOM_KEY_LOCATION_RIGHT
, DOM_KEY_LOCATION_NUMPAD
.
Example:
RunResults:
metaKey : Boolean
Returns true
if the keyboard's meta (Command on Mac, the Windows logo key in some PC browsers) key is
pressed.
Example:
RunResults:
Copyright © PUBLIC Contributors