Fix evt.keyCode usage on IE6,7 #39

Open
wants to merge 3 commits into
from

Projects

None yet

2 participants

Contributor

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.

@fabdouglas fabdouglas Fix evt.keyCode usage on IE6,7
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.
c6b7436
Owner

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.

fabdouglas added some commits Mar 28, 2014
@fabdouglas fabdouglas Fix evt.keyCode usage on IE6,7
I found the issue for keyPress/keyDown.
http://www.west-wind.com/WestwindWebToolkit/samples/Ajax/html5andCss3/keycodechecker.aspx

For keypress event does not map the keycode as keydown event.
Why are there 2 key event managements?

Any way, I've tested this PR on IE7, FF, Chrome and IE11.
cebf880
@fabdouglas fabdouglas Update formatter.js 3420190
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment