I am trying to detect key combination (ctrl+tab), but my code doesn't seem to work. In fact keydown only fires when i press ctrl and as i press tab browser just switches the tab without firing any event.
$(document).keydown(function(e) {
if (e.ctrlKey && e.which === 9) {
alert("CTRL_TAB pressed");
} });
Can any one help me out here? what is the issue with this code. I am using chrome Version "53.0.2785.116".
Use Case: I need this to resize my video element. since it is pressed when user in full screen mode. l can see you tube does the same. when user in full screen mode and ctrl+tab is pressed it will resize the video to small video. I want to achieve similar behaviour.