Midnight Commander (mc) normal "+" and "-" keys working as those on numpad

270 views Asked by At

When I press normal "+" or "-" on keyboard, they work as I'd press those on numpad - mc is popping the dialog for selecting/deselecting files. So its impossible to type any command that contains "+" or "-" (like eg. "ls -al").

This happens on my laptop (which doesn't have numpad), but also on standard ANSI keyboard connected with USB. "Learning keys" in mc doesn't seem to help. This is the same for Debian 9 and Debian testing (10).

Any idea why this is not working correctly?

My mc version shows "3:4.8.21-1".

enter image description here

1

There are 1 answers

2
phd On

For me + and - open these dialogs only when the command line is empty. After I enter some non-special characters + and - are added to the command line.

To enter any special character at the command line press Ctrl+q: Ctrl+q + (or -).