-->

handling ctrl + key event in IE browser

2019-02-26 05:03发布

问题:

I'm using hotkeys (Ctrl+key) in my flex application. getting problem when my app is running in IE. when I press Ctrl+D, im getting 'Add a Favorite' window of IE.

How should I override the default behaviour of the browser? if possible, give me some example.

回答1:

In your event handler, try

event.returnValue = false;

See this SO thread: event.preventDefault() function not working in IE