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

Pressing NumLock while holding the Ctrl key produces the wrong KeyEvent

XMLWordPrintable

    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      JDk 1.6

      ADDITIONAL OS VERSION INFORMATION :
      WIndows XP Professional

      A DESCRIPTION OF THE PROBLEM :
      open KeyEventDemo from the following link:
      http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html

      Press Numlock key, while holding the Ctrl. You'll see the Keyevent for Pause, instead of NumLock. This works correctly in Linux.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Produce the keyevent for Numlock, instead of Pause while holding down the Ctrl key and pressing NumLock.
      ACTUAL -
      In windows platform KeyEvent for Pause is produced instead of NumLock.

      The following is produced when Ctrl + Numlock is pressed:

      KEY PRESSED:
          key code = 17 (Ctrl)
          modifiers = 128 (Ctrl)
          action key? NO
          key location: left
      KEY PRESSED:
          key code = 19 (Pause)
          modifiers = 128 (Ctrl)
          action key? YES
          key location: standard
      KEY RELEASED:
          key code = 19 (Pause)
          modifiers = 128 (Ctrl)
          action key? YES
          key location: standard
      KEY RELEASED:
          key code = 17 (Ctrl)
          modifiers = 0 (no modifiers)
          action key? NO
          key location: left


      REPRODUCIBILITY :
      This bug can be reproduced always.

            yan Yuri Nesterenko
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: