On Mon, Sep 27, 2021 at 12:48:11PM -0400, Mark H. Wood wrote:
I wanted to bind the Enter key on the numeric pad so that it works the same way as the Enter on the main key grid. I entered ":exec what-key", hit pad-Enter, and was told that it is "Char = <F79>, Octal = 527, Decimal = 343". So I entered ":bind generic <F79> select-entry", got no error back, but pressing pad-Enter still results in "Key is not bound. Press '?' for help."What am I missing?
First, make sure you aren't hitting the pad-Enter key in the index - try it somewhere else, such as the query menu or alias menu.
The index had a bug (now fixed in git master) where it would display the "key is not bound" message when trying to invoke <select-entry>, because <select-entry> is not actually implemented in the index.
If that fixes it, then also add bind index <F79> display-message to your muttrc.If not, there may be some logic problem translating to/from the curses input. I thought F## values in curses only went up to 64. Typically, curses should handle keypad-enter and return a special value that Mutt would print as <Enter>.
I'll try to dig into it if that's not the problem. However, my keyboard doesn't have a keypad so I may have some difficulty debugging. :-)
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature