jaridmargolin / formatter.js

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

Fix evt.keyCode usage on IE6,7 #39

Open fdaugan opened 10 years ago

fdaugan commented 10 years ago

On IE7- keyCode property is does not correspond to the key code. The fixed issue is relevant on IE7. The 't' key, keyCode on IE7 is equal to 116, so is mapped to F5 key. So, using {999} patern allows digit and 't' key since isSpecialKey(key) return true.

jaridmargolin commented 10 years ago

I am in the midst (about 90% complete) of implementing automated cross browser testing using sauce labs.This will fix the issue with your failing tests, as well as confirm that this change does not effect other various browsers. Thank you for the PR.

jaridmargolin commented 10 years ago

Some fairly major changes have been pushed. Can you confirm this is still an issue?