JDK-7124551 : [macosx] Once added, Menu shortcut cannot be removed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,7u4
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic,x86
  • Submitted: 2011-12-23
  • Updated: 2014-10-09
  • Resolved: 2012-05-14
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 7 JDK 8
7u6Fixed 8 b34Fixed
Related Reports
Relates :  
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.
10-04-2012

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

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