禁用Android键盘的“开始”按钮的WebView文本输入 [英] Disabling Android Keyboard's 'Go' Button for WebView Text Entry

查看:119
本文介绍了禁用Android键盘的“开始”按钮的WebView文本输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用的WebView指着一个jQueryMobile基址的Andr​​oid应用程序。通常情况下,禁用软键盘上的开始按钮,很简单,只要加入安卓imeOptions =actionDone控件的XML标记。然而,在WebViews的情况下,这不会做的伎俩。

I am developing an Android application that uses a WebView pointed at a jQueryMobile-based site. Normally, disabling the 'Go' button on the soft keyboard is as simple as adding android:imeOptions="actionDone" to the control's XML tag. In the case of WebViews however, this doesn't do the trick.

我怎么能自动做一个表单提交禁用开始按钮,或者简单地将其与完成按钮取代,如安卓imeOptions =actionDone会为一个EditText?

How can I disable the 'Go' button from automatically doing a form submission, or alternatively to simply replace it with the 'Done' button, like android:imeOptions="actionDone" would for an EditText?

推荐答案

您可能会停止通过将表格的的onsubmit 事件提交表单。

You may stop submitting form by putting the onsubmit event of the form.

这篇关于禁用Android键盘的“开始”按钮的WebView文本输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆