简体   繁体   中英

Disable automatic keyboard correction on HTML input

For a web application open on Android Chrome. Is it possible to disable automatic keyboard correction on a specific HTML input.

Thanks for your help.

在此处输入图片说明

Including following attributes in an input or textarea will disable this:

autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" 

eg

<input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />

I don't think it is possible to disable Android's automatic keyboard correction for an input type in HTML.

But you can show a custom keyboard instead of standard Android OS keyboard. With your own keyboard you will have more flexibility over the user input. You can also reduce some keys or add keys for special symbols if you want.

Checkout this form for more details. It has links to some articles which will help you to implement it.

https://stackoverflow.com/a/22876767/10602679

It's a bug in Chromium .

In fact, the behavior of that row changes based on the HTML element (try <input type="password" autocorrect="newpassword" /> and see the suggestions turn into 0-9 numbers). Chrome needs to respect what developers intend to.

Please upvote/star that bug.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM