From a49b1534ead22f4fc53f880d4dd8a0517c66a8d1 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Thu, 27 Jun 2013 11:48:06 -0400 Subject: Bug 410683 - Chinese words is lost when typing in the StyledText control with Pinyin Simplified input source --- .../Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java index 79066812ed..00b0f24ea0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java @@ -2068,7 +2068,7 @@ boolean insertText (long /*int*/ id, long /*int*/ sel, long /*int*/ string) { NSEvent nsEvent = NSApplication.sharedApplication ().currentEvent (); if (nsEvent != null) { long /*int*/ type = nsEvent.type (); - if (type == OS.NSKeyDown || type == OS.NSSystemDefined) { + if (type == OS.NSKeyDown || type == OS.NSKeyUp || type == OS.NSSystemDefined) { NSString str = new NSString (string); if (str.isKindOfClass (OS.class_NSAttributedString)) { str = new NSAttributedString (string).string (); -- cgit