From 3d0bfb0a003b8f6816be05bb899db08f3a9b8423 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 15 Aug 2020 13:18:48 +0200 Subject: [PATCH] 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. --- src/winio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index 78c0a7e2..afef1d4c 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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 != '[')) {