Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shiftkey is not working #339

Open
arenadeveloper opened this issue Jun 10, 2016 · 2 comments
Open

shiftkey is not working #339

arenadeveloper opened this issue Jun 10, 2016 · 2 comments

Comments

@arenadeveloper
Copy link

Hi i am trying to check if user has pressed shiftkey with click

$('input').on('ifClicked', function(event){
console.log(event.shiftKey);
var box = $('.i-checks');
});

it always returns undefined. Can you help me.
Another thing is the multiselect feature available with pressing shiftkey.

@DixxieFlatline
Copy link

Same issue here.
JS console shows that the event doesn't even have the which or keyCode properties.

@NoMan2000
Copy link

Here's the fix:

var shiftKey = window.event.shiftKey;

This will bring in the global window event object, which will detect if the shift key is pressed down.

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

No branches or pull requests

3 participants