I'm trying to bind Ctrl+shift+N keydown event form Chrome browser, but it is not working. Following is the snippet of code:
$(document).bind('keydown', function(e) {
console.log(e.which);
console.log(e.ctrlKey);
console.log(e.shiftKey);
if (e.ctrlKey && e.shiftKey && e.which === 78) {
e.preventDefault();
console.log('Ctrl+Shift+N');
return false;
}
});
On the other browsers its working fine, since Chrome browser has already assigned this shortcut for "New incognito window". So is there any way to prevent this default behavior or catch this event ?