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.
master
Benno Schulenberg 2021-11-28 12:25:55 +01:00
parent b5448615b9
commit b87722ab2d
1 changed files with 2 additions and 1 deletions

View File

@ -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__