Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2013-06-27 15:48:06 +0000
committerSilenio Quarti2013-06-27 15:51:17 +0000
commita49b1534ead22f4fc53f880d4dd8a0517c66a8d1 (patch)
tree6be55cf886fca23d389dea99a97ddfa8e11eb9ff
parent7ab77d9bb2cec6c9491528139a7a9ace69b4b3d6 (diff)
downloadeclipse.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.java2
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 ();

Back to the top