-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.2
-
generic
-
generic
A menu contains 4 menu items and I have set an accelerator key for one of the menu items. Now when I disable the menu, I expect all the menuitems within the menu to be disabled alongwith their accelerator keys. But unfortunately, the menu item inside the disabled menu is still accessible through the accelerator key, in the sense that pressing the accelerator key triggers an action event for that menu item.
This is reproducible on SolSparc10 as well as WinXP atleast since 1.4.2.
I have attached a sample test. Execute the sample test. Click on the 'Messages' menu. Check whether 'move' menu is disabled. Move menu contains a menu item 'Work Account' which is set with the accelerator key 'ALT + W'. Press ALT+W. If you see an action event on the console, the bug is reproduced.
This is reproducible on SolSparc10 as well as WinXP atleast since 1.4.2.
I have attached a sample test. Execute the sample test. Click on the 'Messages' menu. Check whether 'move' menu is disabled. Move menu contains a menu item 'Work Account' which is set with the accelerator key 'ALT + W'. Press ALT+W. If you see an action event on the console, the bug is reproduced.
- duplicates
-
JDK-6342307 Accelerators trigger menuitems that are on disabled menus
- Resolved