Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ctrl keys
Message
From
23/11/2001 16:57:24
 
 
To
22/11/2001 14:17:04
General information
Forum:
Internet
Category:
Microsoft Internet Explorer
Title:
Miscellaneous
Thread ID:
00584658
Message ID:
00585251
Views:
31
>>>I use IE 6 in intranet.
>>>
>>>I need to catch Ctrl+N and other keys in onkeypress event in javascript.
>>>
>>>Unfortunately, IE 6 onkepress event occurs only if
>>>Ctrl+Q, T,U,G,J,M or K is pressed.
>>>
>>>How to catch other ctrl key combinations ?
>>
>>Do you have control over the client machines? If so this MSKB could help: http://support.microsoft.com/support/kb/articles/q179/2/21.asp , look under NoFileNew
>
>I have full control over client computers.
>I tried to block keys in this way in IE 6
>An attemt to execute blocked key now displays message
>
>This operation has been cancelled due to restrictions in effect on this computer.
>
>However, the blocked key is still not available in onkeypress.
>How to make it available.

I don't think it's possible to prevent Ctrl-N using onkeypress. Do you know what keycode is returned for Ctrl+N? You might want to try onkeydown event if you can trap it at all.
Previous
Reply
Map
View

Click here to load this message in the networking platform