JDK-6181153 : PIT: Menu shortcuts with space are not honored when focus is in a disabled button
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-10-19
  • Updated: 2011-01-19
  • Resolved: 2005-07-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b43Fixed
Related Reports
Relates :  
Relates :  
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

Comments
EVALUATION we are consider reverting the fix for 5044469 as a fix for this CR and 6181145. ###@###.### 2005-06-10 13:05:34 GMT Taking 5044469 fix apart will correct this bug in JDK6.0b43. ###@###.### 2005-06-30 13:02:45 GMT
10-06-2005