From b87722ab2d08cdf7517f183819a83f07e4e0bbfa Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 28 Nov 2021 12:25:55 +0100 Subject: [PATCH] feedback: report an unbindable function key as an "Unknown sequence" Saying "Unbound key" would imply that it could be bound in a nanorc. This fixes https://savannah.gnu.org/bugs/?61574. Bug existed in this form since version 2.6.0, commit e0c4f9c5. --- src/winio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index df7c089f..78ef5e3f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1107,7 +1107,8 @@ int parse_kbinput(WINDOW *win) } else if (keycode == shiftaltdown) { shift_held = TRUE; return KEY_NPAGE; - } + } else if ((KEY_F0 + 24) < keycode && keycode < (KEY_F0 + 64)) + return FOREIGN_SEQUENCE; #endif #ifdef __linux__