Hi there!
I'm sure i'm doing something terribly stupid for this not to work, but I can't get my shift event to fire. I've tried both:
$('.ShowCannedReport_UserFilterDropdown').each(function (index, element) {
$(element).bind('click', function (event) {
if (!event.shiftKey && !event.ctrlKey) {
ShowCannedReport_UserFilter_Blur(this, event);
}
else {
ShowCannedReport_UserFilterWithShiftHeld = this;
}
});
and:
$('.ShowCannedReport_UserFilterDropdown').each(function (index, element) {
$(element).click(function (event) {
if (!event.shiftKey && !event.ctrlKey) {
ShowCannedReport_UserFilter_Blur(this, event);
}
else {
ShowCannedReport_UserFilterWithShiftHeld = this;
}
});
});
Both of these show the event.shiftkey as undefined. Any idea as to what i'm doing wrong?
ShowCannedReport_UserFilterDropdown is a multiselect dropdown and the click event is firing on both versions, but the shiftkey event is never registered.