I'm working on a simple Samsung smart TV application,, so i added buttons and fired them by clicking (ENTER) on the remote control... the first button worked at the first click BUT at the second click all the buttons stopped!!!!! SO whats the problem!! i'll appreciate any suggestion..thank you!! this is my codes...
javascript code:
case tvKey.KEY_ENTER:
case tvKey.KEY_PANEL_ENTER:
$('.modalDialog').html("Blablablah");
alert("ENTER");
alert($(this).html());
break;
html code:
<div class= "hello" >
<a href="#openModal" onkeydown="Main.keyDown();">A</a></div>
<div class= "hello" >
<a href="#openModal" onkeydown="Main.keyDown();">B</a></div>
<div class= "hello" >
<a href="#openModal" onkeydown="Main.keyDown();">C</a></div>