Skip to content
This repository was 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
brettpostin wants to merge 3 commits intokeithamus:masterfrom
brettpostin:patch-1
Open

Skip keyCode check in is() when keyCode does not exist on event object#62
brettpostin wants to merge 3 commits intokeithamus:masterfrom
brettpostin:patch-1

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