diff src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m @ 17695:7d3e0c5b5e25

8180370: Characters are skipped on input of Korean text on OS X Reviewed-by: serb, prr Contributed-by: sreeprakash.s@oracle.com
author aghaisas
date Wed, 07 Jun 2017 16:43:18 +0530
parents ba316e40c19b
children d4e5f053e75b
line wrap: on
line diff
--- a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m	Tue Jun 06 10:58:02 2017 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m	Wed Jun 07 16:43:18 2017 +0530
@@ -986,6 +986,13 @@
         // We also don't want to send the character that triggered the insertText, usually a return. [3337563]
         fKeyEventsNeeded = NO;
     }
+    else {
+        // Need to set back the fKeyEventsNeeded flag so that the string following the
+        // marked text is not ignored by keyDown
+        if ([useString length] > 0) {
+            fKeyEventsNeeded = YES;
+        }
+    }
     fPAHNeedsToSelect = NO;
 }