我们正在GWT中开发一个自助服务终端应用程序,为此,我们使用自定义虚拟键盘,我们想要禁用默认的虚拟键盘。提前谢谢。
答案 0 :(得分:0)
您是否尝试设置属性inputView
?
如果设置,默认虚拟键盘将不会显示。
答案 1 :(得分: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.