diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2013-06-27 11:48:06 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2013-06-27 11:51:17 -0400 |
commit | a49b1534ead22f4fc53f880d4dd8a0517c66a8d1 (patch) | |
tree | 6be55cf886fca23d389dea99a97ddfa8e11eb9ff | |
parent | 7ab77d9bb2cec6c9491528139a7a9ace69b4b3d6 (diff) | |
download | eclipse.platform.swt-a49b1534ead22f4fc53f880d4dd8a0517c66a8d1.tar.gz eclipse.platform.swt-a49b1534ead22f4fc53f880d4dd8a0517c66a8d1.tar.xz eclipse.platform.swt-a49b1534ead22f4fc53f880d4dd8a0517c66a8d1.zip |
Bug 410683 - Chinese words is lost when typing in the StyledText control with Pinyin Simplified input source
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); |