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

XMLWordPrintable

    • x86
    • generic, windows_nt

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: