jaridmargolin / formatter.js

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

In Mozilla arrow keys trigger keypress #4

Closed jaridmargolin closed 10 years ago

jaridmargolin commented 10 years ago

In Mozilla, arrow keys trigger the 'keypress' event. The keypress handler assumes it is a character keystroke and calls preventDefault, causing the key to not be handled correctly.