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

Solaris: lightweight components do not receive key events for an important key

XMLWordPrintable

    • sparc
    • solaris_2.5.1



      Name: joT67522 Date: 11/11/97


      [This bug looks like it may be a duplicate of Bug Id: 4081671]



      This bug is present in JDK 1.1, 1.1.1, 1.1.2,
      1.1.3, 1.1.4 for Solaris on SPARC.

      We are using Sun SPARCstation/Ultra with Type-5
      Swiss-German keyboard. The following key (with
      keycode 72) does NOT generate any key events:

      label modifier keysym
      --------- -------- ----------------------------
      diaeresis - 0x1005ff04 (SunFA_Diaeresis)
      "!" Shift 0x21 (exclam)
      "]" AltGr* 0x5d (bracketright)

      *) the modifier AltGr has the keysym
         0xff7e (Mode_switch) and is usually used
         to type in the third character on an key

      I do not understand, why this key does not work
      but the key beside it (keycode 71), which also
      has three characters associated with ("è", "ü",
      "["), does work as expected...


      The following program reproduces the bug:


      import java.awt.*;
      import java.awt.event.*;

      class KeyTest extends Frame {

      public KeyTest() {
          super("KeyTest");
          
          Canvas c = new Canvas();
          c.addKeyListener(new KeyAdapter() {
              public void keyPressed(KeyEvent k) {
                  System.out.println("KeyPressed: " + k);
              }
          });
          add(c);
      }

      public static void main(String[] args) {
          Frame f = new KeyTest();
          f.show();
      }

      }


      I already reported it for 1.1.3. You treated it
      as duplicate, but I don't find any duplicate in
      the JDC BugParade. You said it was high priority,
      but it has not been resolved for months.

      Because of this bug, we cannot use:

      - JavaWorkshop 2.0 (it's editor does not allow
        us to type in a "]")
      - Swing (every component is lightweight)

      Thank you very much for correcting this bug
      as soon as possible.

      Kind regards,
      -Matthias
      (Review ID: 19621)
      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: