United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7124551 : [macosx] Once added, Menu shortcut cannot be removed

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2013-07-12
Project Name:
JDK
Resolved Date:
2012-05-14
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7,7u4
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-257 submitted 2011/08/10 by Yuri Nesterenko
Run an attached small example. It starts an application and adds a Menu with two MenuItems. Initially they have no shortcuts. Press the Button. Action will successfully setShortcut() to both items.  Press the button again: now it should remove shortcuts using different ways for both items, calling setShortcut(null) and calling deleteShortcut(). Neither has any effect in macosx port.

                                    

Comments
EVALUATION

We should accept empty KeyEquivalent in case of shortcut removing.
                                     
2012-04-10
SUGGESTED FIX

http://cr.openjdk.java.net/~serb/7124551/webrev.00/
                                     
2012-03-20
EVALUATION

Author: Yuri Nesterenko Date: 10/Aug/11 10:14 AM
Build: b202
AWT_Menu/Manual/MenuRuntimeTest
                                     
2011-12-23



Hardware and Software, Engineered to Work Together