Reputation: 524
Is there a way to disable auto-punctuate feature in html input text field and textarea?
For example after typing a word and double tapping space key immediately, a dot is automatically added in-between the 2 spaces in the textfield, this also causes the keypress javascript event to be fired just once instead of twice.
Upvotes: 7
Views: 2556
Reputation: 313
HTML input fields don't have this behavior by default, you'd have to implement it by yourself.
If you're experiencing this on mobile (Android), it's a setting that the user can enable in the keyboard settings. It doesn't depend on the browser though.
EDIT: MacOS has the same behavior as mobile keyboards. To disable it, check out this article.
Upvotes: 2