...

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



motorhead
03-03-2003, 11:14 AM
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:

brothercake
03-03-2003, 04: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:

glenngv
03-04-2003, 02: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)

brothercake
03-04-2003, 06: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:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum