Microsoft KB Archive/177158

= PRB: Event for the F10 Key Not Fired in a Java Applet =

Article ID: 177158

Article Last Modified on 8/25/2005

-

APPLIES TO


 * Microsoft Java Virtual Machine

-



This article was previously published under Q177158



SYMPTOMS
If you use the F10 key in an applet, the event does not get fired for the Java applet, instead the File menu in Internet Explorer 3.x gets the focus.



RESOLUTION
This problem does not occur under the Microsoft virtual machine provided in the SDK for Java 2.0x or later and Internet Explorer 4.0x.



STATUS
This is by design.



Steps to Reproduce Behavior
Use the following code snippet in a Java applet to reproduce the behavior: public boolean keyDown(Event evt, int  key) {     if (key == Event.F2) showStatus("F2 Key pressed"); else if (key == Event.F10) //Will switch to the IE3.x File //menu showStatus("F10 Key pressed"); else return false; return true; }

