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

Need for an ability to detect if ctrl/shift/alt key is active at current event #46

Open
creage opened this issue Oct 14, 2013 · 3 comments

Comments

@creage
Copy link

creage commented Oct 14, 2013

Currently there is no ability to detect if there were any of shift/ctrl/alt key active for current event. Would be nice to have something like $.jwerty.is('shift').

@keithamus
Copy link
Owner

Jwerty doesn't need this functionality because it's already baked into the event object. Simply do event.shiftKey === true

@creage
Copy link
Author

creage commented Oct 14, 2013

Well jQuery events don't. They are wrapped into jQuery Event, having originalEvent property, which actually does have this props. But it is not convinient to write a (e.originalEvent || e).shiftKey === true everytime.

@keithamus keithamus reopened this Oct 14, 2013
@keithamus
Copy link
Owner

Fancy making a PR for it?

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

No branches or pull requests

2 participants