What are the panel buttons’ functions?
Policy for handling the TV panel buttons.
On the TV panel there are 6 functional buttons, which should be handled as described below:
Button name | Key ID value | should work like: |
---|---|---|
Source key | KEY_PANEL_SOURCE | KEY_ENTER |
Menu key | KEY_PANEL_MENU | KEY_RETURN |
Volume Up key | KEY_PANEL_VOL_UP | KEY_RIGHT |
Volume Down key | KEY_PANEL_VOL_DOWN | KEY_LEFT |
Channel Up key | KEY_PANEL_CH_UP | KEY_UP |
Channel Down key | KEY_PANEL_CH_DOWN | KEY_DOWN |
If the widget has the volume control functonalities, the panel buttons should work as navigation buttons.
The implementation is very simple - please take look at the example below:
case tvKey.KEY_RETURN:
case tvKey.KEY_PANEL_MENU:
alert("RETURN");
...
break;
case tvKey.KEY_UP:
case tvKey.KEY_PANEL_CH_UP:
alert("UP");
...
break;
case tvKey.KEY_ENTER:
case tvKey.KEY_PANEL_SOURCE:
alert("ENTER");
...
break;