diff options
| author | nyamatongwe <devnull@localhost> | 2001-08-17 08:19:00 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-08-17 08:19:00 +0000 | 
| commit | ea1315ac0b7f85b5f366f0fd6d08885269cd5d3d (patch) | |
| tree | 4c4ba9c49aa86c26ce8d6e52f2f8b0ad83666a99 | |
| parent | 5065e58680f80bf6b1b8951d949a4f3e115e381a (diff) | |
| download | scintilla-mirror-ea1315ac0b7f85b5f366f0fd6d08885269cd5d3d.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); | 
