Hello,
I recently installed the Tizen based smart tv Sdk (1.2 version), and I started testing it by creating a new "Tizen Web Project", then I created a new Tizen tv emulator using the Emulator manager, but when I tried to run my application, I got this warning message:
What does this mean? how could I resolve it?
P.S: In deed, I have this code into my main.js file:
// add eventListener for keydown document.addEventListener('keydown', function(e) { //alert("test"); //alert(e.keyCode); switch(e.keyCode){ case 37: //LEFT arrow alert("aaaa"); break; case 38: //UP arrow break; case 39: //RIGHT arrow break; case 40: //DOWN arrow break; case 13: //OK button break; case 10009: //RETURN button break; default: alert("code: "+e.keyCode); console.log("Key code : " + e.keyCode); break; } });
I got the (aaaa) alert, but when I click on other button on the remote control, nothing happen... I mean this instruction didn't work
alert("code: "+e.keyCode);