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.
master
Benno Schulenberg 2020-08-15 13:18:48 +02:00
parent 3cb55c8b27
commit 3d0bfb0a00
1 changed files with 1 additions and 1 deletions

View File

@ -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 != '[')) {