Open creage opened 11 years ago
Jwerty doesn't need this functionality because it's already baked into the event object. Simply do event.shiftKey === true
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.
Fancy making a PR for it?
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').