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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • b43
    • 6
    • b43
    • x86
    • windows_xp
    • Verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: