icheck
icheck copied to clipboard
shiftkey is not working
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.
Same issue here. JS console shows that the event doesn't even have the which or keyCode properties.
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.