JDK-8155740 : [macosx] robot.keyPress and robot.keyRelease do not generate key event for Alt-Graph key VK_ALT_GRAPH.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-04-29
  • Updated: 2019-05-16
  • Resolved: 2016-06-22
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 9
9 b127Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION : 
java version "1.9.0-internal-debug"
Java(TM) SE Runtime Environment (build 1.9.0-internal-debug-mahalder_2015_11_27_15_27-b00)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-internal-debug-mahalder_2015_11_27_15_27-b00, mixed mode)

ADDITIONAL OS VERSION INFORMATION : 
Mac OS X 10.10.5

A DESCRIPTION OF THE PROBLEM : 
robot.keyPress(KeyEvent.VK_ALT_GRAPH) and robot.keyRelease(KeyEvent.VK_ALT_GRAPH) do not generate key event on Mac OS X. 
 
The issue does occur in Java 8 or earlier. 

Comments
Issue is reproduced on OS X 10.10.5. VK_ALT_GRAPH key not mapped to any key on OS X.
29-04-2016