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

Inconsistent values for keycode from the Numeric Keypad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.1, 1.1.4
    • client-libs
    • None
    • generic, x86
    • solaris_2.5.1, windows_nt



      Name: sg39081 Date: 08/15/97


      The KeyEvent class gives 3 indications of keyboard activity -
         keyPressed(), keyTyped(), keyReleased()

      For the keypad the value of the keycode field on keyPressed()
      and keyReleased() is dependant on whether numlock is on or off.

      e.g.
         the keypad del key
            Numlock on KEY_PRESSED gives a keycode of 110 which is
               different from the . key on the main keyboard
            Numlock off KEY_PRESSED gives a keycode of 127 which is
               the same as the DEL key on the main keyboard

      This means it is not possible to consistantly tell whether
      the key press being processed comes from the keypad or the
      main keyboard. As a result the additional VK_* codes provided
      in JDK 1.1 are largely of no practical use what ever.


      company - Pericom Software PLC , email - ###@###.###
      ======================================================================

            xdengsunw Xianfa Deng (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: