diff options
author | nyamatongwe <unknown> | 2001-08-17 08:19:00 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-17 08:19:00 +0000 |
commit | 3787571276d008fb202f026cd57846738e88a938 (patch) | |
tree | 4c4ba9c49aa86c26ce8d6e52f2f8b0ad83666a99 | |
parent | aefc679df4ad0260c26f8992a6608d26c2bc1c44 (diff) | |
download | scintilla-mirror-3787571276d008fb202f026cd57846738e88a938.tar.gz |
Extended Hungarian hack to make Russian work.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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); |