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

PIT: Menu shortcuts with space are not honored when focus is in a disabled button

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b43
    • Introduced In Version:
      6
    • Resolved In Build:
      b43
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      The following bug fix
      5044469: REG: Disabled component gains focus and receives keyevents on win32
      has suppressed the space bar events when focus is in a disabled button. In such a case, if there is a menu with a shortcut 'CTRL + SPACE' or 'CTRL + SHIFT + SPACE', such shortcuts will not be honored when pressing those key combinations since space events are totally suppressed. This is incorrect. Menu shortcuts should work regardless of where the focus is.

      This is seen only on Win32, only in the following PIT build:
      java version "awt.pit-jcg-win-03-2004-10-15-Fri-int.mustang"
      Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-jcg-win-03-2004-10-15-Fri-int.mustang)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b08, mixed mode)

      This is neither reproducible on other platforms nor on previous builds.

      I have attached a sample test. Execute the sample test. You would get a frame with a button. Click on the button. The button will be disabled but will continue to have focus. Press 'CTRL + SPACE' when the focus is in button. If the 'exit' menu is not executed (a message will be printed on the console if executed) the bug is reproduced.
      ###@###.### 10/19/04 12:53 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: