changeset 4668:cade8d7be120

7130751: [macosx] EventTest0020 test fails in JCK-runtime-7 interactive Reviewed-by: dcherepanov
author leonidr
date Fri, 20 Jan 2012 19:17:51 +0300
parents 4156455c1481
children 67f7e27a2945
files src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java	Fri Jan 20 14:41:38 2012 +0300
+++ b/src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java	Fri Jan 20 19:17:51 2012 +0300
@@ -133,6 +133,9 @@
             int[] out = new int[2]; // [jkeyCode, jkeyLocation]
 
             postsTyped = NSEvent.nsKeyInfoToJavaKeyInfo(in, out);
+            if (!postsTyped) {
+                testChar = KeyEvent.CHAR_UNDEFINED;
+            }
 
             jkeyCode = out[0];
             jkeyLocation = out[1];