summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
diff options
context:
space:
mode:
authorPraveen Innamuri <pinnamuri>2010-03-30 04:56:26 +0000
committerPraveen Innamuri <pinnamuri>2010-03-30 04:56:26 +0000
commit0efd209a77c6b802e8a80c85873b25c962b609ab (patch)
tree77b2c1c46100cf3645ffe800650a950b7c387e25 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
parenta1f41c8c77edf2c888ea58b590ee59a91cb857e1 (diff)
downloadeclipse.platform.swt-0efd209a77c6b802e8a80c85873b25c962b609ab.tar.gz
eclipse.platform.swt-0efd209a77c6b802e8a80c85873b25c962b609ab.tar.xz
eclipse.platform.swt-0efd209a77c6b802e8a80c85873b25c962b609ab.zip
295482 - [Widgets] file search history and regexp code assistance scroll BOTH using cursor up/down keys
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
index f1c109a413..65220987b8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
@@ -1406,7 +1406,11 @@ int /*long*/ gtk_insert_text (int /*long*/ widget, int /*long*/ new_text, int /*
int /*long*/ gtk_key_press_event (int /*long*/ widget, int /*long*/ event) {
int /*long*/ result = super.gtk_key_press_event (widget, event);
- if (result != 0) fixIM ();
+ if (result != 0) {
+ gdkEventKey = 0;
+ fixIM ();
+ return result;
+ }
if (gdkEventKey == -1) result = 1;
gdkEventKey = 0;
if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0) && (style & SWT.READ_ONLY) == 0) {