Virtual Keyboard

webOS TV provides a system keyboard and the system keyboard 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 and there are four types of the virtual keyboard for app developers. The virtual keyboard is the basic text input method for the webOSTV app and it can be customized as following types.

  • Text (Default)
  • Number
  • E-mail
  • URL

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>

Download

For your understanding about the virtual keyboard, you can download the sample code and its IPK file at the below link for free.

download_150.jpg

Result in the webOS TV Emulator

You can launch and see the sample app result in the webOS TV Emulator as below image.

virtualKeyboard_730.jpg

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.
Navigation