I want to detect event like Ctrl + DblClick using jQuery. For dblclick I already have dblclick event. Is it possible to recognize the event without setting flag on keypress event?
look at the passed jQuery event object. There is a boolean property called ctrlKey.
$(window).on("dblclick", function(e) {
console.log(e.ctrlKey);
});
here's a simple example: http://jsbin.com/ugocaf/2/edit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With