[英]How to go to next input by pressing enter in soft keyboard in android web-view phonegap build
I have one application which is build with phonegap and kendo UI as a js framework. 我有一个使用phonegap和kendo UI作为js框架构建的应用程序。 The form inside the application is irresponsive for the enter button pressed on soft keyboard.
应用程序内部的表单对软键盘上按下的Enter键没有反应。 Ideally pressing should move to next input as far as I know.
据我所知,理想情况下应按移至下一个输入。 but pressing enter button here is doing nothing.
但是在这里按Enter键无济于事。 This is is not the code where I am working exclusively so my question is
这不是我专门工作的代码,所以我的问题是
1) How to achieve this across the application? 1)如何在整个应用程序中实现这一目标?
2) Is there any old code which is preventing the desired behavior? 2)是否有任何旧代码阻止了预期的行为?
3) Can I replace Enter with Go button across the application? 3)是否可以在应用程序中用Enter按钮替换Enter? But in last input ideally it should be enter button.
但理想情况下,在最后一次输入中应该是输入按钮。
I wish I could put some code here but I don't have any for this context. 我希望可以在这里放一些代码,但是在这种情况下我没有任何代码。 The screenshot looks like this.
屏幕截图如下所示。
I am looking something like this
我看起来像这样
$('input[type="textbox"]').keyup(function(e) {
if(e.keyCode == 13) {
$(this).next().focus();
}});
just add these two lines 只需添加这两行
android:inputType="textPersonName"
android:singleLine="true"
it worked for me. 它为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.