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

Press shift and another key using robot does not trigger events properly - WinXP

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 6, 7u101, 8u92
    • client-libs
    • b131
    • x86
    • windows_2000, windows_xp

    Description

      When SHIFT key is pressed using Robot and some other key is pressed, both key-pressed and key-released is triggered for shift and the new key.

      If SHIFT key is pressed, key pressed must be triggered.
      When another key like (VK_RIGHT) is pressed and released, no key-pressed/key-released event must be triggered for SHIFT key.
      But in WinXP both key-pressed and key-released is triggered for SHIFT, every time some other key is pressed.

      Compile and run RobotSelectTest
      If key-pressed and key-released is triggered more than once, bug is reproduced.

      In solaris, WinNT, Win2K, key-pressed and key-released is triggered only once (towards the beginning key-pressed is triggered for SHIFT and towards the end key-released is triggered)

      Because of this problem, its not possible to select a text in TextField using Robot in WinXP. This feature is required for automating some of the test scenarios. There is no feasible work around, as we are trying to select some text in native components as well.

      Attachments

        Issue Links

          Activity

            People

              simonis Volker Simonis
              rmenonsunw Rakesh Menon (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: