JDK-4092016 : Solaris: lightweight components do not receive key events for an important key
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.4
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1997-11-11
  • Updated: 1999-12-14
  • Resolved: 1999-12-14
Related Reports
Duplicate :  
Relates :  
Description

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)
======================================================================

Comments
WORK AROUND Name: joT67522 Date: 11/11/97 ======================================================================
11-06-2004

EVALUATION 12/13/99 kevin.ryan@eng -- yes, this looks like a dupe of 4081671 ====================================================================== This is not a duplicate of 4081671. However, it can't be reopened because it was closed as a duplicate. See 4490692. ###@###.### 2001-08-15
15-08-2001