<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://developers.smarttv-alliance.org/forum/feed.php?f=6&amp;t=59" />

<title>developers.smarttv-alliance.org</title>
<subtitle>Developers forum</subtitle>
<link href="https://developers.smarttv-alliance.org/forum/index.php" />
<updated>2013-12-05T04:32:02-07:00</updated>

<author><name><![CDATA[developers.smarttv-alliance.org]]></name></author>
<id>https://developers.smarttv-alliance.org/forum/feed.php?f=6&amp;t=59</id>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-05T04:32:02-07:00</updated>
<published>2013-12-05T04:32:02-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=148#p148</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=148#p148"/>
<title type="html"><![CDATA[Re: Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=148#p148"><![CDATA[
For this LG on-screen keyboard to work you just need two JavaScript files:<br /><br />&lt;script type=&quot;text/javascript&quot; src=&quot;smarttv_getplatform.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;keyboard.js&quot;&gt;&lt;/script&gt; <br /><br />Note that the order of the scripts is important and smarttv_getplatform must be loaded first. You can omit the LGVKeyboard.css stylesheet. Keyboard.js will take case of loading all necessary JS and CSS files when running on the LG platform. Please change the file locations in keyboard.js if necessary. Once you have this every text &lt;input&gt; on your page will activete the on-screen keyboard when focused. <br /><br />To get your own key event handler working alongside the keyboard you should comment or remove the following lines in keyboard.js:<br /><br />else                                                                       <br />{                                                                          <br />    // you can use your own event handler - keyboard is built-in -&gt; rename 'onkeydownhandler' to your keydown event handler             <br />    document.addEventListener(&quot;onkeydown&quot;, onkeydownhandler, true);          <br />}     <br /><br />Assuming you already define your own keydown event handler in the onload of your page you should now be able to catch the VK_BACK key code when you press the back key.<br /><br />Extra note: TV browsers do not necessarily support 'alert()' in javascript, please do not use it.<br /><br />Best regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Thu Dec 05, 2013 4:32 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-05T03:33:27-07:00</updated>
<published>2013-12-05T03:33:27-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=147#p147</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=147#p147"/>
<title type="html"><![CDATA[Re: Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=147#p147"><![CDATA[
The js file which i included in my app are as follows:<br />&lt;script type=&quot;text/javascript&quot; src=&quot;javascript/smarttv_getplatform.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascipt&quot; src=&quot;javascript/lg_keyconstants.js&quot;&gt;&lt;/script&gt;<br /> &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;javascript/jslgVKeyboard/LgVKeyboard.css&quot; /&gt;<br />&lt;script type=&quot;text/javascript&quot; id=&quot;mainVKScript&quot; src=&quot;javascript/jslgVKeyboard/LgVKeyboard.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;javascript/keyboard.js&quot;&gt;&lt;/script&gt; <br /><br />when i press the back button it is not recognizing the back button code it is going to the default key. i checked like this:<br />case VK_BACK:<br />alert(&quot;display screen&quot;+display_screen);<br />                 break;<br />default:<br />          alert(&quot;default key&quot;);<br />break; <br />Then i tried by removing some of the js files. i included the follwing js file oly and i checked<br /><br />&lt;script type=&quot;text/javascript&quot; src=&quot;javascript/smarttv_getplatform.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascipt&quot; src=&quot;javascript/lg_keyconstants.js&quot;&gt;&lt;/script&gt;<br /><br /><br />When i tried with these js the back button worked poperly. I cant able to identity where it is going wrong. Can you help me in this<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Thu Dec 05, 2013 3:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-05T00:23:39-07:00</updated>
<published>2013-12-05T00:23:39-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=146#p146</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=146#p146"/>
<title type="html"><![CDATA[Re: Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=146#p146"><![CDATA[
Hello Priya,<br /><br />Can you please be a bit more specific about the problem? For instance describe what you see happening.<br /><br />Thank you.<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Thu Dec 05, 2013 12:23 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-04T23:18:09-07:00</updated>
<published>2013-12-04T23:18:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=586#p586</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=586#p586"/>
<title type="html"><![CDATA[Re: Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=586#p586"><![CDATA[
For this LG on-screen keyboard to work you just need two JavaScript files:<br /><br /> <strong>script</strong> <br /> <strong>script</strong>  <br /><br />Note that the order of the scripts is important and smarttv_getplatform must be loaded first. You can omit the LGVKeyboard.css stylesheet. Keyboard.js will take case of loading all necessary JS and CSS files when running on the LG platform. Please change the file locations in keyboard.js if necessary. Once you have this every text <input> on your page will activete the on-screen keyboard when focused. <br /><br />To get your own key event handler working alongside the keyboard you should comment or remove the following lines in keyboard.js:<br /><br />else                                                                       <br />{                                                                          <br />    // you can use your own event handler - keyboard is built-in -> rename 'onkeydownhandler' to your keydown event handler             <br />    document.addEventListener(\"onkeydown\", onkeydownhandler, true);          <br />}     <br /><br />Assuming you already define your own keydown event handler in the onload of your page you should now be able to catch the VK_BACK key code when you press the back key.<br /><br />Extra note: TV browsers do not necessarily support 'alert()' in javascript, please do not use it.<br /><br />Best regards,<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Wed Dec 04, 2013 11:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-04T23:18:09-07:00</updated>
<published>2013-12-04T23:18:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=585#p585</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=585#p585"/>
<title type="html"><![CDATA[Re: Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=585#p585"><![CDATA[
The js file which i included in my app are as follows:<br /> <strong>script</strong> <br /> <strong>script</strong> <br /> <link rel=\"stylesheet\" type=\"text/css\" href=\"javascript/jslgVKeyboard/LgVKeyboard.css\" /><br /> <strong>script</strong> <br /> <strong>script</strong>  <br /><br />when i press the back button it is not recognizing the back button code it is going to the default key. i checked like this:<br />case VK_BACK:<br />alert(\"display screen\"+display_screen);<br />                 break;<br />default:<br />          alert(\"default key\");<br />break; <br />Then i tried by removing some of the js files. i included the follwing js file oly and i checked<br /><br /> <strong>script</strong> <br /> <strong>script</strong> <br /><br /><br />When i tried with these js the back button worked poperly. I cant able to identity where it is going wrong. Can you help me in this<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Wed Dec 04, 2013 11:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2013-12-04T23:18:09-07:00</updated>
<published>2013-12-04T23:18:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=584#p584</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=584#p584"/>
<title type="html"><![CDATA[Re: Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=584#p584"><![CDATA[
Hello Priya,<br /><br />Can you please be a bit more specific about the problem? For instance describe what you see happening.<br /><br />Thank you.<br />STA QA<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Wed Dec 04, 2013 11:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-04T23:18:09-07:00</updated>
<published>2013-12-04T23:18:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=583#p583</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=583#p583"/>
<title type="html"><![CDATA[Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=583#p583"><![CDATA[
In my app i am using the built-in keyboard . When i included the library for in-built keyboard back button is not working properly but it is working fine when i remove keyboard.js from my html.<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Wed Dec 04, 2013 11:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[priya]]></name></author>
<updated>2013-12-04T23:18:09-07:00</updated>
<published>2013-12-04T23:18:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=145#p145</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=145#p145"/>
<title type="html"><![CDATA[Back button key not working properly]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=59&amp;p=145#p145"><![CDATA[
In my app i am using the built-in keyboard . When i included the library for in-built keyboard back button is not working properly but it is working fine when i remove keyboard.js from my html.<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=3176">priya</a> — Wed Dec 04, 2013 11:18 pm</p><hr />
]]></content>
</entry>
</feed>