new KeyEvent(type, keyCode)
Class of events raised when key/remote control buttons are pressed.
Any keycodes contained in these events will have been mapped to
application specific codes (e.g. KeyEvent.VK_ENTER).
Parameters:
Name | Type | Description |
---|---|---|
type |
String | The event type (e.g. keydown , keyup ). |
keyCode |
Integer | The normalised keyCode of the key that caused this event to be raised (e.g. KeyEvent.VK_ENTER , KeyEvent.VK_UP ). |
- Source:
Extends
Members
(static, constant) VK_DOWN
Virtual key code for the down cursor/arrow button.
Based on CEA-2014-A CE-HTML Annex F
- Source:
(static, constant) VK_ENTER
Virtual key code for the enter/select button.
Based on CEA-2014-A CE-HTML Annex F
- Source:
(static, constant) VK_LEFT
Virtual key code for the left cursor/arrow button.
Based on CEA-2014-A CE-HTML Annex F
- Source:
(static, constant) VK_RIGHT
Virtual key code for the right cursor/arrow button.
Based on CEA-2014-A CE-HTML Annex F
- Source:
(static, constant) VK_UP
Virtual key code for the up cursor/arrow button.
Based on CEA-2014-A CE-HTML Annex F
- Source:
Methods
isDefaultPrevented()
Check to see if the default handler has been prevented.
- Inherited From:
- Source:
Returns:
Boolean true if the default handler has been prevented.
isPropagationStopped()
Check to see if the propagation of this event has been stopped.
- Inherited From:
- Source:
Returns:
Boolean true if the event has been stopped, otherwise Boolean false.
preventDefault()
Prevent any default handler being called for this event.
- Inherited From:
- Source:
stopPropagation()
Stop propagation of the event through the widget tree.
- Inherited From:
- Source: