changeset 13990 | 3e72145fd93a |
parent 13647 | de61414bbcf2 |
child 14306 | 8d823e84507a |
--- a/jdk/src/macosx/native/sun/awt/AWTView.m Thu Sep 20 17:55:40 2012 +0400 +++ b/jdk/src/macosx/native/sun/awt/AWTView.m Fri Sep 21 13:48:06 2012 +0400 @@ -279,7 +279,10 @@ return; } - if (![self hasMarkedText] && fKeyEventsNeeded) { + NSString *eventCharacters = [event characters]; + BOOL isDeadKey = (eventCharacters != nil && [eventCharacters length] == 0); + + if ((![self hasMarkedText] && fKeyEventsNeeded) || isDeadKey) { [self deliverJavaKeyEventHelper: event]; }