diff options
author | 2018-10-16 17:57:40 -0400 | |
---|---|---|
committer | 2018-10-16 17:57:40 -0400 | |
commit | e6abfa9c7d1286b9d75834ebe6117581a2b561cd (patch) | |
tree | 22669534f0f20b210626c8048faee36f0ee1294c /src/textadept.c | |
parent | c88ae934a528eb174e956da9cb371de9ac536288 (diff) | |
download | textadept-e6abfa9c7d1286b9d75834ebe6117581a2b561cd.tar.gz textadept-e6abfa9c7d1286b9d75834ebe6117581a2b561cd.zip |
Attempt to fix key handling on international keyboards.
Updating to GTK 2.24.32 on Windows seems to have removed the need to translate
keys. It is possible that some international layouts do not need it, but some
do.
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/textadept.c b/src/textadept.c index a64553df..1aead223 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1909,19 +1909,8 @@ static void s_notify(Scintilla *view, int _, void *lParam, void*__) { } #if GTK -/** - * Signal for a Scintilla keypress. - * Translate Ctrl-, or Meta-modified keys to their group 0 key values (which are - * typically ASCII values) as necessary in order for bindings like Ctrl+Z to - * work on international keyboards. - * Do not modify Alt- keys since they may be composed. - */ +/** Signal for a Scintilla keypress. */ static int s_keypress(GtkWidget*_, GdkEventKey *event, void*__) { - if (event->group > 0 && - (event->state & (GDK_CONTROL_MASK | GDK_META_MASK))) - gdk_keymap_translate_keyboard_state(gdk_keymap_get_default(), - event->hardware_keycode, 0, 0, - &event->keyval, NULL, NULL, NULL); return lL_event(lua, "keypress", LUA_TNUMBER, event->keyval, event_mod(SHIFT), event_mod(CONTROL), event_mod(MOD1), event_mod(META), event_mod(LOCK), -1); |