--- a/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m Tue Jun 06 10:58:02 2017 +0530
+++ b/jdk/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;
}