关闭移动浏览器中的表单助手? [英] turning off form assistant in mobile safari?

查看:75
本文介绍了关闭移动浏览器中的表单助手?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在触摸屏设备(在我的情况下为iPhone,但我假定它在其他设备上)上运行时,当弹出虚拟键盘以显示表单字段时,在键盘顶部添加了导航按钮:上一个",下一个",完成". (有时是自动填充").

When running on a touchscreen device (iPhone, in my case, but I presume it does this on others), when the virtual keyboard pops up for a form field, there are added navigation buttons at the top of the keyboard: "previous", "next", "done". (And sometimes "autofill").

这显然是Mobile Safari的表单助手".

This is apparently the Mobile Safari "form assistant".

我发现这是多余的,多余的和令人困惑的. iPhone用户不习惯在本机应用程序中使用它,这是不必要的.这是一个触摸设备.您触摸要更改的内容.不需要导航按钮!

I find this redundant, superfluous, and confusing. iPhone users aren't used to this in native apps, and it's unnecessary. It's a touch device. You touch what you want to change. There's no need for navigation buttons!

如果用户经常使用其设备在网站上填写表格,我想用户可能对此很熟悉.自3G以来,我就拥有iPhone,但从未注意到这一点.我认为我从未在Mobile Safari上填写过表格! (我会使用我的桌面...)

I suppose users may be familiar with this, IF they use their device often to fill forms on websites. I've had an iPhone since the 3G, and never noticed this. I don't think I've ever filled a form on Mobile Safari! (I would use my desktop...)

表单助手可以在网站上导航表单,而这些表单可能不适用于移动设备.因此,在这种情况下,它有一个有用的目的.

The form assistant is there for navigating forms on websites, which might not be designed appropriately for a mobile device. So, in that context it serves a useful purpose.

但是,当使用JQuery Mobile时,您正在设计一个在触摸屏移动设备上使用的界面.不需要表单助手.我发现它在本地应用程序(PhoneGap,Rhodes等)中特别令人讨厌.

But when using JQuery Mobile, you ARE designing an interface for use on a touchscreen mobile device. There shouldn't be a need for the form assistant. I find it particularly annoying in a local app (PhoneGap, Rhodes, etc.).

我已经进行了一些搜索,但还没有提出解决方案.

I've done some searches, and haven't come up with a solution.

有人知道如何关闭此功能吗?

Does anybody know how to turn this off?

推荐答案

移动Safari没有解决方案,但PhoneGap肯定有解决方案.

There is no solution for mobile Safari, but for PhoneGap there certainly is.

2.6.0 开始, config.xml

As of 2.6.0 there is an option in the config.xml

<preference name="HideKeyboardFormAccessoryBar" value="true" />

对于2.6.0之前的版本或更复杂的使用,有 KeyboardToolbarRemover ,甚至允许动态显示和隐藏keyboardAcessoryView.

For versions before 2.6.0, or more sophisticated use, there is the KeyboardToolbarRemover, which even allows to dynamically show and hide the keyboardAcessoryView.

在您的Javascript中,包含模块

In your Javascript, include the module

var toolbar = cordova.require('cordova/plugin/keyboard_toolbar_remover');

要禁用工具栏

toolbar.hide()

重新启用工具栏

toolbar.show()

这篇关于关闭移动浏览器中的表单助手?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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