<AWT Dev> <AWT dev>[9] Review request for JDK-7156316: [macosx] Ctrl+Space does generate Unknown keychar

Manajit Halder manajit.halder at oracle.com
Mon Jun 27 17:57:44 UTC 2016


Hi All,

Kindly review the fix for JDK9.

Bug: 
https://bugs.openjdk.java.net/browse/JDK-7156316 <https://bugs.openjdk.java.net/browse/JDK-7156316>

Webrev: 
http://cr.openjdk.java.net/~mhalder/7156316/webrev.00/ <http://cr.openjdk.java.net/~mhalder/7156316/webrev.00/>

Issue: 
[macosx] Ctrl+Space does generate Unknown keychar

Cause: 
SPACK key value was received as “ “ in function handleKeyEvent and that was correct value, but while sending the value as a character to function nsToJavaChar it was getting passed as 0. The function nsToJavaChar was returning 0 as unichar character for SPACE key as there was no code to handle the situation.
 
Fix: 
An extra parameter was added in handleKeyEvent function indicating SPACE key and was passed to nsToJavaChar method to handle it.

Regards,
Manajit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160627/8ef4facc/attachment.html>


More information about the awt-dev mailing list