jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

key "T" is allowed in chrome and internet explorer #89

Open wokung opened 9 years ago

wokung commented 9 years ago

When I enter the input field and enter the key "t", it works, although my pattern is 9999.

can someone help mE?

kenmorechalfant commented 8 years ago

+1 happens to me too.

vkurlyan commented 8 years ago

+1. It's because 't' has code 116 and it's accepted like 'F5' key pressed. This code is on 261 line

binhdocco commented 8 years ago

How to solve this ?

mort3za commented 8 years ago

@binhdocco Seems this pull request fixes it: https://github.com/firstopinion/formatter.js/pull/70

binhdocco commented 8 years ago

@mort3za Thank you so much. It works correct now.