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

Keychar attribute in KeyEvent changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • x86
    • linux

      There is a difference in key event between 5.0 and mustang dev builds. When you type ctrl+alt+s, you will get different value in keyChar attribute:
      JDK1.5: java.awt.event.KeyEvent[keyChar='s']
      JDK1.6: java.awt.event.KeyEvent[keyChar='^S']

      All other attributes in event are the same, i.e. modifiers are Ctrl+Alt etc.

      To reproduce the issue you can try to use the JEP application from here:
      http://editor.netbeans.org/doc/KeyboardIssues/KeyboardIssues.html

      The JEP application prints events which occur on individual key strokes to console.

      For more details see also NetBeans bug 60874:
      http://www.netbeans.org/issues/show_bug.cgi?id=60874

            yan Yuri Nesterenko
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: