Ignore internal function keys if they have not got an entry in the key

table.
This commit is contained in:
nicm
2024-08-23 13:25:39 +00:00
parent 6e9a914014
commit 08be883297
3 changed files with 12 additions and 5 deletions

View File

@ -410,7 +410,7 @@ key_string_lookup_key(key_code key, int with_flags)
s = "MouseMoveBorder";
goto append;
}
if (key >= KEYC_USER && key < KEYC_USER + KEYC_NUSER) {
if (key >= KEYC_USER && key < KEYC_USER_END) {
snprintf(tmp, sizeof tmp, "User%u", (u_int)(key - KEYC_USER));
strlcat(out, tmp, sizeof out);
goto out;