top

What are the panel buttons’ functions?

Published 2014-10-27 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2011,2012,2013,2014 models)

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;