diff options
-rw-r--r-- | gtk/ScintillaGTK.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index cc4f342c0..af921e5e3 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1316,9 +1316,9 @@ gint ScintillaGTK::KeyPress(GtkWidget *widget, GdkEventKey *event) { key &= 0x7F; else key = KeyTranslate(key); - // Hack for keys between 256 and 511 but makes Hungarian work. - if ((key >= GDK_Aogonek) && (key <= GDK_abovedot)) - key &= 0xff; + // Hack for keys over 256 but makes Hungarian work. + // This will have to change for Unicode + key &= 0xff; bool consumed = false; int added = sciThis->KeyDown(key, shift, ctrl, alt, &consumed); |