diff --git a/src/winio.c b/src/winio.c index b8e7e997..5fe84e4f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -369,7 +369,9 @@ int parse_kbinput(WINDOW *win) retval = keycode; break; case 1: - if ((keycode != 'O' && keycode != 'o' && keycode != '[') || + if (keycode >= 0x80) + retval = keycode; + else if ((keycode != 'O' && keycode != 'o' && keycode != '[') || key_buffer_len == 0 || *key_buffer == ESC_CODE) { /* One escape followed by a single non-escape: * meta key sequence mode. */