Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Skip keyCode check in is() when keyCode does not exist on event object #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

brettpostin
Copy link

In some scenarios (e.g. Ctrl-Click) in Firefox and IE the event object does not have the keyCode property. Therefore the loop always returns false when comparing properties with the jwertycode object.

This check skips the comparison if the property is missing on the event object.

In some scenarios (e.g. Ctrl-Click) in Firefox and IE the event object does not have the keyCode property. Therefore the loop always returns false when comparing properties with the jwertycode object.

This check skips the comparison if the property is missing on the event object.
Removed newline at end of file.
@brettpostin brettpostin changed the title Update jwerty.js Skip keyCode check in is() when keyCode does not exist on event object Feb 7, 2015
@keithamus
Copy link
Owner

Hey @brettpostin thanks for the PR! Could you explain what this solves, with code examples please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants