<Swing Dev> Review Request for 8139169: Action registered for keyboard shortcut is called twice

Rajeev Chamyal rajeev.chamyal at oracle.com
Wed Dec 2 11:46:52 UTC 2015


Hello Avik,

 

Can you use @requires (os.family == "mac") instead of a method to check the OS type.

 

Regards,

Rajeev Chamyal

 

From: Avik Niyogi 
Sent: 30 November 2015 17:22
To: Rajeev Chamyal; Alexander Scherbatiy; Sergey Bylokhov; swing-dev at openjdk.java.net
Subject: <Swing Dev> Review Request for 8139169: Action registered for keyboard shortcut is called twice

 

Hi All,

 

Kindly review the fix for JDK9.

Bug: 

https://bugs.openjdk.java.net/browse/JDK-8139169

Webrev: 

http://cr.openjdk.java.net/~aniyogi/8139169/webrev.00/

 

Issue: Swing action with an accelerator like "meta shift COMMA”.

It is put in the component's action map, when it is invoked, the action is called twice. 

Cause: Incorrect implementation within CMenuItem.m

 

Fix:Added logic to sense all modifiers including “shift” in CMenuItem which did not exist before.

 

With Regards,

Avik Niyogi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20151202/74c22f76/attachment.html>


More information about the swing-dev mailing list