commit b87722ab2d08cdf7517f183819a83f07e4e0bbfa
parent b5448615b952aced295da1f401430a6c97ded7f0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 28 Nov 2021 12:25:55 +0100
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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__