LG Virtual Keyboard User Guide
User Manual:
Open the PDF directly: View PDF .
Page Count: 5
Download | |
Open PDF In Browser | View PDF |
Virtual Keyboard Virtual Keyboard is designed to appear as below when a text input element is focused. Developers can easily use virtual keyboard by including virtual keyboard library. USB keyboard input and Voice Recognition are supported since NetCast 3.0(2012). To download the Virtual Keyboard Library, go to [Resource Center > Smart TV > SDK & Tools > Sample Codes] menu in LG Developer (http://developer.lge.com) website. Using Virtual Keyboard Library To use the virtual keyboard, add the following script in the head of html file. In order to use virtual keyboard in iframes, the additional script should be added in the html file connected to the iframe. (Relative path of the jsLgVKeyboard folder should be modified according to the real path.) In a normal or parent page In iframe pages Virtual Keyboard Object(lgKb) uses these Keyboard APIs. For the 2014 model year LG Smart TVs, they are designed to use the System Keyboard not creating the Virtual Keyboard Object (lgKb) even when using the Virtual Keyboard Library. In this regard, please check for sure if the lgKb object has been created first and then use the Keyboard API. setInitEventHandler Description Sets the event handler that is going to be called when Virtual Keyboard is completely initialized. Parameter initEventHandler Event handler that receives the “Initialization Complete” event. Return Value None isInitialized Description Notifies if Virtual Keyboard is initialized or not. Parameter None Return Value initStatus : Initialization is complete or not. [boolean] isShown Description Notifies if Virtual Keyboard is displayed or not. This function is available only after Virtual Keyboard is completely initialized. Parameter None Return Value show : Virtual Keyboard is displayed or not. [boolean] onKeyDown Description Event Handler that is occurred when Remote Control Unit or Key of HID Keyboard is down. Developers should use lgKb.onKeyDown instead of window.onkeydown as the Virtual Keyboard uses the keydown event. This is able to use after the initialization of Virtual Keyboard is completed. Parameter event : event data of window.onkeydown Return Value None onKeyUp Description Event Handler that is occurred when Remote Control Unit or Key of HID Keyboard is up. Developers should use lgKb.onKeyUp instead of window.onkeyup as the Virtual Keyboard uses the keyup event. This is able to use after the initialization of Virtual Keyboard is completed. Parameter event : event data of window.onkeyup Return Value None onShow Description Event Handler that is occurred when Virtual Keyboard is shown. This is able to use after the initialization of Virtual Keyboard is completed. Parameter None Return Value None onHide Description Event Handler that is occurred when Virtual Keyboard is hidden. This is able to use after the initialization of Virtual Keyboard is completed. Parameter None Return Value None targetBgColor Description Background color of the element that is going to receive the key input of Virtual Keyboard. This is able to use after the initialization of Virtual Keyboard is completed. targetBgColor Description Text color of the element that is going to receive the key input of Virtual Keyboard. This is able to use after the initialization of Virtual Keyboard is completed. • Do not modify the folder structure and file name of jsLgVKeyboard. • The script must include the following declaration: id = “mainVKScript” • A web page should be set character set as UTF-8 to use virtual keyboard as following: • Virtual keyboard is enabled in the following tag/types: Tag Type INPUT TEXT INPUT PASSWORD TEXTAREA • Beware of cross-domain problem when using iframe. If an application uses multiple html files those are loaded from different domains, cross-domain problem occurs and virtual keyboard cannot be used in iframe. Supported Language Virtual keyboard supports 42 languages, and 16 languages are supported for voice recognition of them. Refer to Developing > API > Voice Recognition Plugin and API section in this Library for detailed information. Sample CodesInsert title here Lg Virtual Keyboard Test
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 5 Language : ko-KR Tagged PDF : Yes Author : user Creator : Microsoft® Office Word 2007 Create Date : 2013:11:12 10:39:27 Modify Date : 2013:11:12 10:39:27 Producer : Microsoft® Office Word 2007EXIF Metadata provided by EXIF.tools