-
Bug
-
Resolution: Fixed
-
P4
-
1.3.1, 5.0
-
b40
-
generic
-
generic
-
Verified
I have a frame with multiple menus. Each menu has a set of sub-menus and menuitems. Say I have a 'file' menu added to the menubar. 'File' menu contains 'Save', 'open' sub-menus. 'Save' menu inturn contains 'As File', 'As Template' menu items. Both of these menuitems are linked to their own shortcuts - say 'CTRL + S', 'CTRL + T' respectively. Now I am disabling 'Save' sub-menu programmatically. 'Save' is disabled and there is no way I can traverse the 'As File' / 'As Template' menuitems and hence can not click them. But pressing the above mentioned shortcuts do trigger action events for the menuitems which are not at all shown in the list of menus, in the sense that they are hidden inside a disabled menu. Such shortcuts should be disabled when the parent menu itself is disabled.
This is reproducible on all releases (at least since 1.3.1) and on all platforms.
I have attached a sample test. Execute the sample test. You would see a frame with a set of menus added to it's menubar. Click 'File' menu and make sure 'Save' sub-menu is disabled (it actually has 2 menuitems with respective shortcuts). Now press 'CTRL + S' / 'CTRL + T'. If you see action event being triggered by the menuitems added to 'Save' (a disabled menu), the bug is reproduced.
###@###.### 10/27/04 12:55 GMT
This is reproducible on all releases (at least since 1.3.1) and on all platforms.
I have attached a sample test. Execute the sample test. You would see a frame with a set of menus added to it's menubar. Click 'File' menu and make sure 'Save' sub-menu is disabled (it actually has 2 menuitems with respective shortcuts). Now press 'CTRL + S' / 'CTRL + T'. If you see action event being triggered by the menuitems added to 'Save' (a disabled menu), the bug is reproduced.
###@###.### 10/27/04 12:55 GMT