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

getKeyChar() returns 'c' 0x63 instead of 0x03 when Ctrl-C is typed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 6
    • client-libs
    • None
    • sparc
    • solaris

      There is a regression in java 1.6 where the keyChar for key C
      when Ctrl modifier is pressed is still 'c' instead of ascii ctrl-c (0x03):

      1.6.0:
      evt java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='c',modifiers=Ctrl,extModifiers=Ctrl,keyLocation=KEY_LOCATION_UNKNOWN] ...
      getKeyChar 'c' 63

      1.5.X:
      evt java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='',modifiers=Ctrl,extModifiers=Ctrl,keyLocation=KEY_LOCATION_UNKNOWN] ...
      getKeyChar '' 03

      This impacts the terminalemulator used in the sunstudio IDE. Now one cannot
      issue interrupts from within the dbx running in the IDE ... or issue
      any other control characters for doing cmdline editing etc.

      This happenned once before but I can't find the relevant CR.

            Unassigned Unassigned
            isoleima Ivan Soleimanipour (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: