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

XToolkit pass extra delete key when numpad "," key is pressed

    XMLWordPrintable

Details

    • x86
    • linux

    Description

      FULL PRODUCT VERSION :
      Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
      And all Java6 versions

      ADDITIONAL OS VERSION INFORMATION :
      Linux fc7test 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686 i686 i386 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Gnome 2.18, keyboard "Czechia"

      Xorg 7.2 with following configuration:
      Section "InputDevice"
              Identifier "Keyboard0"
              Driver "kbd"
              Option "XkbModel" "pc105"
              Option "XkbLayout" "cz"
              Option "XkbOptions" "grp:shifts_toggle,grp_led:scroll"
      EndSection


      A DESCRIPTION OF THE PROBLEM :
      Pressing key "," on numpad (NumLock is ON), generates TWO events:
      - java.awt.event.KeyEvent[KEY_PRESSED,keyCode=127,keyText=Delete,keyChar=',',keyLocation=KEY_LOCATION_NUMPAD]
      - java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=',',keyLocation=KEY_LOCATION_UNKNOWN]

      Effect: Deletes char at cursor position. (it is holding, when entering decimal numbers.)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      - run swing app (java -jar SwingSet2.jar)
      - focus on JTextField
      - type some text
      - move cursor on non last position
      - press ","

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Pressing key "," on numpad (NumLock is ON), should generate ONE event:
      - java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=',',keyLocation=KEY_LOCATION_UNKNOWN]

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      use MToolKit instead XToolKit

      Attachments

        Issue Links

          Activity

            People

              yan Yuri Nesterenko
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: