| ARRIS Enterprises, Inc. Confidential Information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Handling InputThe KreaTV IP-STB software supports input handling through standardized JavaScript DOM level 3 event model using the KeyboardEvent interface. The key identifiers generated from key presses on the remote control and keyboard correspond, as closely as possible, to the list of Keyboard events and key identifiers as specified by W3C. However, the remote control may have buttons that are not found on a regular PC keyboard. These unique buttons are translated by the driver to a series of key identifiers according to the following tabe:.
STANDBY button key press (CTRL + "Esc") is handled by the platform
and will never reach the portal, except for the modifier key "CTRL". To listen for standby events the portal needs to subscribe to the Numeric keysNumeric keys are generated from key presses on the remote control and keyboard as defined by W3C. The following JavaScript code can be used to create a mapping between these key codes and JavaScript variables:
Example: How to get an input event in the portal.<sdk_root>/examples/example-html-portal/index.html
Working with USB keyboardsIt is possible to change the key mapping used by attached USB keyboards. See here for more info. |