webOS TV provides a system keyboard which is automatically displayed on the webOS TV screen if you let your cursor in the text window. The system keyboard is called as a virtual keyboard for webOS TV. The virtual keyboard is the primary text input method for the webOSTV app, and it can be customized as following types. The followings are four types of the virtual keyboard for app developers.
To check the UI of each virtual keyboard type, see Virtual Keyboard.
Setting the Input Type for the Virtual Keyboard
Before starting to use the virtual keyboards, we should know that the virtual keyboard is always an enabled state and cannot be disabled. To set the virtual keyboard on webOS TV as you want, you can add the HTML5 input tag as below.
<form> <input type=”text”> <input type=”number”> <input type=”email”> <input type=”url”> </form>
For your understanding about the virtual keyboard, you can download the sample code and its IPK file at the below link for free.
Result in the webOS TV Emulator
You can launch and see the sample app result in the webOS TV Emulator as below image.
Do’s and Don’ts
Do test this sample app on your webOS TV emulator and real webOS TV.
Don’t test this sample app on your PC browser because it is impossible to see the webOS TV virtual keyboard on the browser.
Do shout “Hurray!” when you see the virtual keyboard after executing your app.