Hello!
I've written code that works well on a simulator in a sidebar view. This code take a numeric button and show it in a message box. Here it's:
CODEBOX
_keyHandler: function (event) {
if(event.payload.eventPhase != 3) {
return;
}
var keyCode = event.payload.keyCode - 48;
if (keyCode >= 0 && keyCode <= 9)
{
this.infoDialog = new KONtx.dialogs.Alert({
title: "Hi!",
message: keyCode,
buttons: [{label: "Ok"}]
});
this.infoDialog.show();
}
},
this._keyHandler.subscribeTo(KONtx.application, ['onWidgetKeyPress'], this);
But it isn't work on Sumsung TV because numeric button used for chanel change. Is there a way to intercept numeric buttons in a sidebar view (disabling the TV channel change thay are usually used for)?