JDK-8242801 : The macOS toolkit does not set proper ActionModifiers for clicks in TrayIcons
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11,14,15
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • CPU: generic
  • Submitted: 2020-04-15
  • Updated: 2021-10-12
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
We have a test to check this functionality
java/awt/TrayIcon/ActionEventTest/ActionEventTest.java
But unfortunately, it does not check that the robot actually clicks on the tray icon, So it is always passed on macOS due to a bug in the robot.

Problematic code:
http://hg.openjdk.java.net/jdk/client/file/786345dc46f2/src/java.desktop/macosx/classes/sun/lwawt/macosx/CTrayIcon.java#l275