title: How to disabling browser shortcut ctrl-N and make a trigger a function when ctrl-N is pressed? - JS Fiddle added
body: <p>I have added the library shortcut.js from <a href="http://www.openjs.com/scripts/events/keyboard_shortcuts/" rel="nofollow">http://www.openjs.com/scripts/events/keyboard_shortcuts/</a></p>
  
  <p>and tried to trigger a function when CTRL + N is pressed. The function worked perfectly, but since CTRL + N is a new window shortcut in the browser(Mozilla 8) It opened the new window after the function is triggered.</p>
  
  <p>So i want to trigger make CTRL+N shortcut to trigger my function only when the cursor is in a div. if the cursor is not in the div, the browser's shortcut should work, else if the cursor is inside the div, the browser's shortcut should get disabled and my function should trigger.</p>
  
  <p>Here is the fiddle which could explain it bettter. <a href="http://jsfiddle.net/bala2111/4jBnp/1/" rel="nofollow">http://jsfiddle.net/bala2111/4jBnp/1/</a></p>