feedback: report Ctrl+Alt keystrokes as unbindable

When reporting them as simply unbound, the user might think that M-^X
keystrokes might somehow become bound.
This commit is contained in:
Benno Schulenberg 2020-01-22 14:05:18 +01:00
parent 5111b20bf5
commit 25d397e7b3
1 changed files with 4 additions and 0 deletions

View File

@ -1356,6 +1356,10 @@ void unbound_key(int code)
else if (meta_key) {
if (code == '[')
statusline(ALERT, _("Unbindable key: M-["));
#ifndef NANO_TINY
else if (code < 0x20)
statusline(ALERT, _("Unbindable key: M-^%c"), code + 0x40);
#endif
else
statusline(ALERT, _("Unbound key: M-%c"), toupper(code));
} else if (code == ESC_CODE)