0

Were are developing a kiosk application in GWT and for that, we are using custom virtual keyboard and we want to disable the default virtual keyboard. Thanks in advance.

Manne Teja
  • 11
  • 7
  • possible duplicate of [How to prevent the keyboard from showing (not dismissing) on a TextView?](http://stackoverflow.com/questions/6957363/how-to-prevent-the-keyboard-from-showing-not-dismissing-on-a-textview) – user4098326 Mar 14 '15 at 12:50
  • But i want it in GWT... – Manne Teja Mar 16 '15 at 16:24

2 Answers2

0

Have you try set the property inputView?

If you set, the default virtual keyboard won't show up.

Puttin
  • 1,596
  • 23
  • 27
  • Thank u for your response. Actually we developing this app in GWT and we cannot use that inputVIew property to hide the keyboard. – Manne Teja Mar 16 '15 at 16:17
  • @user3548310 I'm not familiar with GWT, is there anyway to control the native system in GWT? Or you can just show your virtual keyboard and respond user touch and update the related UI. – Puttin Mar 18 '15 at 09:03
  • Got the solution by using JSNI(native javascript), but i don't know it's the best way. Thank for your suggestion @ Puttin – Manne Teja Mar 18 '15 at 17:20
0
Got the solution by using JSNI(native javascript) and it works perfectly, but i don't know it is the best way. I have written code such as follows. 
step1:
Get an id of the active element(i.e., INPUT and type="text"  element) 
step2:
Then immediately call the blur() event on that element (Now the element will lost it's focus and default virtual keyboard doesn't showup)
step3:
Now again immediately call the focus() event on the same element(Note: Keyboard doesn't show up here, it just unblur that element ).
step4:
Now by using the retrieved id, enter the data into textbox through custom virtual keyboard.
Manne Teja
  • 11
  • 7