View Full Version : How do I disable Hot Keys in IE 5 ?

03-03-2003, 12:14 PM
I'm working on a page that will only be viewed by users using IE 5.5.

I've got the page opening with all toolbars hidden. However, I need to disable all of the shortcut keys ( e.g. CTRL+R - reload).

I know that there is a function in Netscape called setHotKeys() which you can set to false. However, I can't find an equivalent for IE.

I've tried capturing a CTRL + Key combination using event.CtrlKey but this only works for key combinations that are not IE shortcut keys.

Any help would be greatly appreciated.:confused:

03-03-2003, 05:56 PM
You can't. As you've seen, you can capture those events and make them do other things, but you can't suppress their native action.

You should try some keypress programming for Opera - it has more hot keys than Theolonius Monk's piano :eek:

03-04-2003, 03:38 AM
why not just bar IE5 users in your site? you can easily do this by using Conditional comments of IE 5 (http://www.javascriptkit.com/howto/cc.shtml)

03-04-2003, 07:46 PM
Originally posted by glenngv
why not just bar IE5 users in your site

Now now ... two wrongs don't make a right :rolleyes: