<AWT Dev> Review request for 8155742 : [Windows] robot.keyPress(KeyEvent.VK_ALT_GRAPH) throws java.lang.IllegalArgumentException in windows
Ambarish Rapte
ambarish.rapte at oracle.com
Tue May 3 16:37:28 UTC 2016
Hi,
Please review fix for JDK9,
Bug: https://bugs.openjdk.java.net/browse/JDK-8155742
Webrev: http://cr.openjdk.java.net/~arapte/8155742/webrev.00/
Issue:
robot.keyPress(KeyEvent.VK_ALT_GRAPH) throws java.lang.IllegalArgumentException in windows
Cause:
KeyEvent .VK_ALT_GRAPH is not supported by Robot.
Fix:
Added VK_ALT_GRAPH key support under Robot for Windows.
VK_RMENU is an extended key, hence added flag KEYEVENTF_EXTENDEDKEY while calling keybd_event.
Doc: keybd_event() https://msdn.microsoft.com/en-us/library/windows/desktop/ms646304(v=vs.85).aspx
Verification:
The change is specific to extended, VK_RMENU key.
Hence existing robot behavior does get affected & no tests should fail.
Verified by executing regression & JCK tests of Event, Robot, Keyboard.
No existing test fails due to this change.
Regards,
Ambarish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160503/cbf82db6/attachment-0001.html>
More information about the awt-dev
mailing list