This patch fix the codegen problem for the keyname() that needs to catch all available key in ncurses.
A use case for us is in python base. There is a module called curses in python base that is a python-binding for ncurses. Python call keyname() to get the keyname available from keynumber and generate the corresponding curse.KEY_* then map to number.
Here is the related bug:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280697
I don't give it a try but I have another program called ranger that have same problem. Rebuild tinfo with this patch and the problem disappear