Commit 194d1858 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

input: properly handle <Escape>s followed by a shifted Meta+letter

After a series of escapes, also <Shift+Meta+letter> should be recognized
as a command keystroke, not just <Meta+letter>.

This fixes https://savannah.gnu.org/bugs/?55442.

Bug existed since the ignoring of <Escape>s before a valid command
keystroke was introduced in version 3.0, commit ecc9211a.
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -475,7 +475,7 @@ int parse_kbinput(WINDOW *win)
* or control character sequence mode. */
if (!solitary) {
meta_key = TRUE;
retval = keycode;
retval = tolower(keycode);
} else
retval = get_control_kbinput(keycode);
else {
......@@ -502,8 +502,10 @@ int parse_kbinput(WINDOW *win)
break;
case 3:
if (key_buffer_len == 0) {
if (!solitary)
if (!solitary) {
meta_key = TRUE;
retval = tolower(keycode);
} else
/* Three escapes followed by a non-escape, and no
* other codes are waiting: normal input mode. */
retval = keycode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment