United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7170657 [macosx] There seems to be no keyboard/mouse action to select non-contiguous items in List
JDK-7170657 : [macosx] There seems to be no keyboard/mouse action to select non-contiguous items in List

Details
Type:
Bug
Submit Date:
2012-05-22
Status:
Closed
Updated Date:
2013-07-12
Project Name:
JDK
Resolved Date:
2012-08-03
Component:
client-libs
OS:
os_x,windows_7
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7,7u4,7u9
Fixed Versions:

Related Reports
Backport:
Duplicate:
Relates:

Sub Tasks

Description
Mac OS X 10.7.3, macmini4,1
JDK 7u6 b09.
Start any code with a java.awt.List with setMultipleSelection(true); you cannot select noncontiguous items non-programmatically.

On Mac, Cmd+click does that: it doesn't work in 7u6, neither does Ctrl+click etc. You can select contiguous items by Shift+click though but that's not enough.

                                    

Comments
EVALUATION

Bug in SwingUtilities.convertMouseEvent(). It ignores extended statet of the event.
getModifiers() should be replaced with  getModifiers()|getModifiersEx()
                                     
2012-07-12
SUGGESTED FIX

http://hg.openjdk.java.net/jdk8/awt/jdk/rev/c277657e5e10
                                     
2012-07-12
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/c277657e5e10
                                     
2012-08-14



Hardware and Software, Engineered to Work Together