PDA

View Full Version : IE11 override browser's shortcut key not working



shivespn
22 Mar 2016, 12:10 PM
IE11 override browser's shortcut key not working
===================================
on KeyUp event there is code that does stuff for shortcut keys e.g. Alt+H. In chrome it works fine. In IE, Alt+H is opening up the browser's help. Is there a way to override browser's default behavior...Tried adding a KeyDown event ( which fires before browser's behavior) and tried event.browserEvent.preventDefault(); event.browserEvent.stopPropagation(); event.browserEvent.returnValue = false; event.browserEvent.cancelBubble = true; Doesn't seem to help.....

Gary Schlosberg
22 Mar 2016, 3:45 PM
Unfortunately if a browser is using a shortcut already it may not be possible to use it in your application.