PRB: Event for the F10 key not fired in a Java Applet

Last reviewed: January 29, 1998
Article ID: Q177158
The information in this article applies to:
  • Microsoft Win32 Virtual Machine for Java

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 for Java provided in the SDK 2.0 for Java and Internet Explorer 4.0.

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 page 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
Technology : kbInetDev
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.