Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4115488

Toggle keys generate extraneous KeyEvents on Windows and Linux (but not Solaris)

    XMLWordPrintable

Details

    • x86
    • generic, windows_nt

    Description

      When you type the NumLock or CapsLock keys on Windows, you get both KEY_PRESSED and KEY_RELEASED events each time you press and release these keys. According to the description in the Java Class Libraries, Second edition, volume 2, page 943, they should only generate one event - KEY_PRESSED when the lock is enabled, KEY_RELEASED when it's disabled. Solaris implements this correctly.

      You can use the enclosed KeyTest application to test this behavior. I'm using a Compaq keyboard where the keys don't physically lock, which may or may not be relevant.

      Attachments

        Activity

          People

            ehawkessunw Eric Hawkes (Inactive)
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: