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

Robot is generating multiple key events against single keystroke on Redhat Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 5.0
    • client-libs
    • None
    • x86
    • linux_redhat_9.0

      I am not sure if this is a duplicate of 4817479. If yes, please reopen 4817479. It happens in automated tests of NetBeans IDE that a shorcut action executed by Robot is done multiple times. I created a test case which shows that after Robot.keyPressed() it behaves differently on window and on Linux. On windows a KeyListener receives just one KeyPress event but on Linux the KeyListener receives multiple KeyPressed and surprisingly KeyReleased events. Run "java TestRobot" and click the "Test it" button. On Linux a counter of events never stops.

      Redhat Linux 2.4.18 - Gnome
      Redhat Linux 2.4.19-4GB JDS2 Gnome
      JDK1.5.0-b63

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: