Ticket #3168 (new defect)
Learn keypad keys vs. numlock
Reported by: | egmont | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Future Releases |
Component: | mc-tty | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
If numlock is off, the keypad /*-+ symbols generate certain escape sequences. In this case "Learn keys" works as expected.
If numlock is on, these keypad symbols generate the regular ASCII characters. "/" is recognized and accepted (although it's of not much use, mc knows it already and it probably won't work once you switch off numlock since mc didn't learn the escape sequence). The other three are not recognized automatically, and can't even be forced (e.g. you navigate to "* on keypad", press Enter and then press "*", you get an error:
Cannot accept this key You have entered "*"
which doesn't make any sense; the same happens for "-" and "+").
My suggestion: When any of the raw ASCII /*-+ characters are read, the user should be asked to switch off numlock and then press that key again.