input: do not enter invalid bytes when holding down both Alt keys
This fixes https://savannah.gnu.org/bugs/?58954.
Bug existed since version 5.1, commit 49231191.
This commit is contained in:
@@ -939,7 +939,7 @@ int parse_kbinput(WINDOW *win)
|
||||
keycode == DEL_CODE)
|
||||
return CONTROL_SHIFT_DELETE;
|
||||
#endif
|
||||
else if (!solitary)
|
||||
else if (!solitary && keycode < 0x20)
|
||||
meta_key = TRUE;
|
||||
} else if (key_buffer_len == 0 || *key_buffer == ESC_CODE ||
|
||||
(keycode != 'O' && keycode != '[')) {
|
||||
|
||||
Reference in New Issue
Block a user