1
1

* src/key.c (get_key_code): Do not blindly strip the eight bit of the

key code when the 'use_8th_bit_as_meta' flag is set. Only key codes
in the range 128 - 255 should be stripped, the rest must be left
intact.
Этот коммит содержится в:
Pavel Tsekov 2006-09-18 21:06:58 +00:00
родитель 3f81ef4f96
Коммит 5978bcc196
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,10 @@
2006-09-18 Pavel Tsekov <ptsekov@gmx.net>
* key.c (get_key_code): Do not blindly strip the eight bit of the
key code when the 'use_8th_bit_as_meta' flag is set. Only key codes
in the range 128 - 255 should be stripped, the rest must be left
intact.
2006-09-14 Pavel Tsekov <ptsekov@gmx.net> 2006-09-14 Pavel Tsekov <ptsekov@gmx.net>
* wtools.c (fg_input_dialog_help) [ENABLE_NLS]: Translate the * wtools.c (fg_input_dialog_help) [ENABLE_NLS]: Translate the

Просмотреть файл

@ -803,7 +803,7 @@ int get_key_code (int no_delay)
d = ALT(*pending_keys++); d = ALT(*pending_keys++);
goto check_pend; goto check_pend;
} }
if ((d & 0x80) && use_8th_bit_as_meta) if ((d > 127 && d < 256) && use_8th_bit_as_meta)
d = ALT(d & 0x7f); d = ALT(d & 0x7f);
this = NULL; this = NULL;
return correct_key_code (d); return correct_key_code (d);
@ -862,7 +862,7 @@ int get_key_code (int no_delay)
this = keys; this = keys;
parent = NULL; parent = NULL;
if ((c & 0x80) && use_8th_bit_as_meta) { if ((c > 127 && c < 256) && use_8th_bit_as_meta) {
c &= 0x7f; c &= 0x7f;
/* The first sequence defined starts with esc */ /* The first sequence defined starts with esc */