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

Linux: problems with key events for dead keys

XMLWordPrintable

    • hopper
    • x86
    • linux



      Name: yyT116575 Date: 10/13/2000


      java version "1.3.0beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta_refresh-b09)
      Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)


      Using this xmodmap keymap, some keys are not correctly handled.

      The problematic keys are those that can generated "composed" characters (using
      dead keys)
      For example, in my keymap :

      keycode 34 = dead_circumflex asciicircum bracketleft
      keycode 35 = dead_cedilla dead_diaeresis bracketright

      ALTGR + KeyCode34 (on a US keymap, it is the left bracket) should produce the
      left bracket but no key events are generated. The same keymap works perfectly
      on every other linux jvm (blackdown's, ibm's...)

      I am using the "/usr/share/xmodmap/xmodmap.qc" keymap on redhat 6.2

      -----
      Here are the keyents generated after hitting ALTGR+[ on IBM's jdk1.3 :

      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=65406,Alt Graph] on frame0
      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=91,keyChar='['] on frame0
      java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyChar='['] on frame0
      java.awt.event.KeyEvent[KEY_RELEASED,keyCode=65406,Alt Graph] on frame0
      (Review ID: 108339)
      ======================================================================

      Name: krC82822 Date: 01/12/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.0-FCS)
      Java HotSpot(TM) Client VM (build Blackdown-1.3.0-FCS, mixed mode)
      **Sun's JDK has the same bug. Please read below.**

      Jdk 1.2.2 for Linux ./src/linux/native/sun/awt/canvas.c contains
      an array of C structure named KeymapEntry. The name of the array
      is keymapTable. The keymapTable array defines mapping between
      Java VK symbols from KeyEvent class and X11 keysym symbols. Some
      of the VK symbols defined in JDK 1.2 KeyEvent are missing from
      the array. Missing symbols are VK_CIRCUMFLEX, VK_AT, VK_COLON
      and some other key symbols. It is needless to say that those
      corresponding X key symbols are also missing. The keymapTable
      array is used to derive awt keysym from Xt keysym and those
      missing symbols comprise a bug due to which we the Japanese
      jp106 keyboard users and some other non-US keyboard users can't
      input such important symbol characters as at-mark, colon, asterisk,
      grave, circumflex, etc. For Linux Java 2 implementations from Sun
      and the Blackdown, JDK 1.3.0 and 1.3.0_01(Sun's latest release) do
      also have this bug. We'd like to expect that the bug be dispelled
      from the next 1.3.0_02 release.

      TEST CASE:
      write a simple program to read KeyEvent.keyChar.
      (Review ID: 115054)
      ======================================================================

      Name: yyT116575 Date: 01/18/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


      when using applet or java ide, like Forte, i can't write some chars.
      Chars that i can't write are ()[], for the most problematic (imagine
      coding under Forte and can't put a ( or a [....)
      Problem occurs when i start Notepad.jar demo, for example
      (Review ID: 115400)
      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: