Ticket #3168 (new defect)

Opened 10 years ago

Last modified 10 months ago

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:


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.

Change History

comment:1 Changed 10 years ago by egmont

  • Priority changed from major to minor

comment:2 Changed 5 years ago by andrew_b

  • Component changed from mc-core to mc-tty

comment:3 Changed 10 months ago by ossi

i can confirm this with both xterm and konsole, both ncurses and slang.
weirdly enough, it does _not_ affect '/', only '*-+'.

Last edited 10 months ago by ossi (previous) (diff)
Note: See TracTickets for help on using tickets.