简体   繁体   English

如何通过在Android Web View Phonegap构建中按软键盘中的Enter进入下一个输入

[英]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.

相关问题 Android键盘替换Web视图 - Android Keyboard Replacement Web-view 如何为iOS / Android创建Web视图? - How to create a web-view for iOS/Android? 如何通过按角度 6 中的键盘输入将光标从一个输入移动到另一个输入和按钮 - How to move cursor-to-next from one input to another input and button by pressing keyboard enter in angular 6 节目 <Go> 代替 <Next> 在Chrome软键盘中输入类型=“数字” - Show <Go> instead of <Next> in Chrome soft keyboard for input type=“number” 如何在网络视图内访问Android应用程序的本地文件 - how to access local files of android app inside a web-view 反应<input> : 回车时关闭软键盘 - React <input>: Dismiss soft keyboard on enter 如何通过按Enter键将焦点设置在a中的下一个“启用”输入框上 - How to set focus on next “enable” input box in a by pressing enter button 如何在功能组件中将下一个输入集中在按下回车键上? (TAB 行为) - How to focus next input on pressing enter, in functional components? (TAB behavior) 如何在Android webview中完全禁用所有输入的软键盘 - How to completely disable soft keyboard for all input in Android webview Android Web-View:将本地Javascript文件注入远程网页 - Android Web-View : Inject local Javascript file to Remote Webpage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM