How do you remove the Next and Prev buttons from virtual keyboard in Sencha Touch / Phonegap application

巧了我就是萌 提交于 2019-11-30 05:45:55

问题


So I have this Phonegap application built using Sencha Touch. I have a textarea control for users to type in some information. When the box gets focus it brings up the virtual keyboard. But the virtual keyboard has next previous and done buttons on it.

How to I remove the next and previous buttons? They don't seem to do anything anyway.


回答1:


There is a way!! This guy has done it by making modifications in the AppDelegate.m. You can find description at this link under bonus code section. You can also refer the code for same developed by Kerri Shotts Code Here

Now that the done button is gone i am trying to figure out how to make the keyboard disappear. This will be everybody's next step.




回答2:


The previous next are for tabbing to previous or next fields on the page. It has a name and is called "Form Assistant", I think it's default to Safari, and PhoneGap essentially is a wrapper around Safari.

AFAIK , there is no way to remove it. Of course, the previous next buttons get disabled, if there is only one field as it's seems to be in your case

EDIT: As from the new comments, it seems there's a way in the new PhoneGap versions. FYI




回答3:


you can try this Plugin Created By don. to show/hide keyboard toolbar.

It worked like charm from my side.



来源:https://stackoverflow.com/questions/6073846/how-do-you-remove-the-next-and-prev-buttons-from-virtual-keyboard-in-sencha-touc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!