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

ID: Q177158


The information in this article applies to:


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.


MORE INFORMATION

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;
   } 


REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site:

http://support.microsoft.com/support/visualj/

http://support.microsoft.com/support/java/

Additional query words: F10 key event fire


Keywords          : JVM 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: July 27, 1999