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.
master
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) { else if (meta_key) {
if (code == '[') if (code == '[')
statusline(ALERT, _("Unbindable key: M-[")); statusline(ALERT, _("Unbindable key: M-["));
#ifndef NANO_TINY
else if (code < 0x20)
statusline(ALERT, _("Unbindable key: M-^%c"), code + 0x40);
#endif
else else
statusline(ALERT, _("Unbound key: M-%c"), toupper(code)); statusline(ALERT, _("Unbound key: M-%c"), toupper(code));
} else if (code == ESC_CODE) } else if (code == ESC_CODE)