input: understand M-Bsp also when terminfo does not match the terminal
Always interpret ESC followed by BS or DEL as <Alt+Backspace>.
This fixes https://savannah.gnu.org/bugs/?58910.
Bug existed since commit 40b03162
from one week ago,
since M-Bsp was hard-bound to deleting a word backwards.
master
parent
4923119174
commit
b0e3767af5
|
@ -940,7 +940,8 @@ int parse_kbinput(WINDOW *win)
|
|||
if (keycode == '\t')
|
||||
return SHIFT_TAB;
|
||||
#ifndef NANO_TINY
|
||||
else if (keycode == KEY_BACKSPACE)
|
||||
else if (keycode == KEY_BACKSPACE || keycode == '\b' ||
|
||||
keycode == DEL_CODE)
|
||||
return CONTROL_SHIFT_DELETE;
|
||||
#endif
|
||||
else if (!solitary)
|
||||
|
|
Loading…
Reference in New Issue