Show VK when i wont

Show VK when i wont

Postby rjot » Tue Jul 01, 2014 12:22 am

Hi,

i have two inputs in my page, and few buttons. When i click \"right/left/up/down arrow\" on emulator the VK automatically shows, and input is focused. But input is third or forth step. Before VK show, i wont navigate in my page.

How to control showing VK? like eg.
Code: Select all
$('#input1').focus();
I know VK script was from LG. In LG VK show when input was focused, not anytime when i hit arrow key (right/left/up/down).
rjot
 
Posts: 11
Joined: Thu Mar 27, 2014 6:46 am

Show VK when i wont

Postby Support_STA » Tue Jul 01, 2014 4:11 am

Hi,

We are considering about this problem. Please wait a couple day to let us inform with stake holders.
We will tell you as soon as we get the result.

Regards,
STA Support
Support_STA
 
Posts: 136
Joined: Fri Aug 09, 2013 3:56 am

Show VK when i wont

Postby Support_STA » Tue Jul 01, 2014 6:35 pm

Hi,

Did you embed an on-screen keyboard library for LG TV models?
You can take a quick look for section 4.2.3 Smart TV Alliance SDK Diversity Handling Guidelines 3.0.1athereand also this helpful documentation.

Regards,
STA Support
Support_STA
 
Posts: 136
Joined: Fri Aug 09, 2013 3:56 am

Show VK when i wont

Postby rjot » Tue Jul 01, 2014 11:40 pm

Did you embed an on-screen keyboard library for LG TV models?

Hi,
The problem is not in the VK, as it displays properly. The problem is to control the display of VK, LG is that when poverty had input focus, it only displays the VK. And the developer can control. Here, each time you click right / left / up / down VK shows up, and the focus is set on input. Prepare test app:
Code: Select all
<!DOCTYPE html>
<html>
 <head>
  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
  <title>Test VK</title>
  <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.1.1.min.js\"></script>
  <script type=\"text/javascript\" id=\"mainVKScript\" src=\"./jslgVKeyboard/LgVKeyboard.js\"></script>
  <link rel=\"stylesheet\" type=\"text/css\" href=\"./jslgVKeyboard/LgVKeyboard.css\" />
 
  <script type=\"text/javascript\"> 
   $(document).ready(function() {
    $('#testInput').focus(); //not show VK
   });
  </script>
 </head> 
  <input id=\"testInput\" type=\"text\" size=\"15\" maxlength=\"11\" value=\"5000\" />
  <input id=\"test1Input\" type=\"text\" size=\"15\" maxlength=\"11\" value=\"Start\" />
 </body>
</html>
rjot
 
Posts: 11
Joined: Thu Mar 27, 2014 6:46 am

Show VK when i wont

Postby Support_STA » Wed Jul 02, 2014 1:05 am

Hi,

Please check LgVKeyboard.jsfile to get more information about how it works.
We had a quick look and found below thing:
window.addEventListener(\"focusin\", function(event) {lgKb.WindowFocusIn(event);}, false);
window.addEventListener(\"focusout\", function(event) {lgKb.WindowFocusOut(event);}, false);
Clearly, on-screen keyboard will be shown when focus event is fired. It means there is no way to handle it if you keep current orginal code of LG library.In case you really want to change this behavior, let's make some changes for these code.

Regards,
STA Support
Support_STA
 
Posts: 136
Joined: Fri Aug 09, 2013 3:56 am

Show VK when i wont

Postby rjot » Wed Jul 02, 2014 3:23 am

I tested the code on a real TV (LG 47LA740S) and everything works as it should, without register event.

Can i use that code VK for rest, TV brand (Philips/[s]Panasonic[/s]/Toshiba?)

If not, how test rest TV brands, Emulator dont have switch a brand (LG/Philips/...)
rjot
 
Posts: 11
Joined: Thu Mar 27, 2014 6:46 am

Show VK when i wont

Postby Support_STA » Thu Jul 03, 2014 10:27 pm

Hi,

That is LG Keyboard library, there is nothing can make sure it will be OK on others. So, you should use LG library for only LG platform.
Besides, emulator can't replace all real tv models and functions. It is hard to get a best result with only emulator.

Thanks,
STA Support
Support_STA
 
Posts: 136
Joined: Fri Aug 09, 2013 3:56 am


Return to App development questions



cron