-
Bug
-
Resolution: Fixed
-
P3
-
8u20
-
MacOS
java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b15, mixed mode)
Start simple test case attached.
1) If you invoke the Action menu item using the menu bar :
=> the onMenuValidation event handler is invoked => OK
Then, if you invoke the Edit menu using the menu bar :
=> the onMenuValidation event handler is invoked again and the undo menu item is updated => OK
2) Now do the same but using accelerators.
If you invoke the Action menu item using the keyboard (cmd + A) :
=> the onMenuValidation event handler is still invoked => OK
Then, if you invoke the Edit menu using the menu bar :
=> the onMenuValidation event handler is NOT invoked and the undo menu item is NOT updated => BUG
Invoking a second time works.
Note that if you do not use the system menu bar, then there is no issue.
This is a regression in 8u20.
1) If you invoke the Action menu item using the menu bar :
=> the onMenuValidation event handler is invoked => OK
Then, if you invoke the Edit menu using the menu bar :
=> the onMenuValidation event handler is invoked again and the undo menu item is updated => OK
2) Now do the same but using accelerators.
If you invoke the Action menu item using the keyboard (cmd + A) :
=> the onMenuValidation event handler is still invoked => OK
Then, if you invoke the Edit menu using the menu bar :
=> the onMenuValidation event handler is NOT invoked and the undo menu item is NOT updated => BUG
Invoking a second time works.
Note that if you do not use the system menu bar, then there is no issue.
This is a regression in 8u20.
- duplicates
-
JDK-8094445 [MacOS] Undo/redo stack is broken when using keyboard
- Resolved
- relates to
-
JDK-8094511 [Menus, Mac] Mac OS : Menu.disable property is ignored when menu items are first initialized in the menu.onMenuValidation method
- Resolved