From ea1315ac0b7f85b5f366f0fd6d08885269cd5d3d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 17 Aug 2001 08:19:00 +0000 Subject: Extended Hungarian hack to make Russian work. --- gtk/ScintillaGTK.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index af921e5e3..254648080 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1314,11 +1314,12 @@ gint ScintillaGTK::KeyPress(GtkWidget *widget, GdkEventKey *event) { key = toupper(key); else if (!ctrl && (key >= GDK_KP_Multiply && key <= GDK_KP_9)) key &= 0x7F; + // Hack for keys over 256 and below command keys but makes Hungarian work. + // This will have to change for Unicode + else if ((key >= 0x100) && (key < 0x1000)) + key &= 0xff; else key = KeyTranslate(key); - // 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); -- cgit v1.2.3