aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 2e67f0e4f..5fcfd22a6 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1991,10 +1991,8 @@ gboolean ScintillaGTK::KeyThis(GdkEventKey *event) {
// This will have to change for Unicode
else if (key >= 0xFE00)
key = KeyTranslate(key);
- else if (IsUnicodeMode())
- ; // No operation
#if GTK_MAJOR_VERSION < 2
- else if ((key >= 0x100) && (key < 0x1000))
+ else if (!IsUnicodeMode() && (key >= 0x100) && (key < 0x1000))
key &= 0xff;
#endif