Map BS (8) and DEL (127) key codes to SEL_BACK as well

This commit is contained in:
Dmitry Yakimenko 2018-11-03 00:03:55 +01:00
parent b12a27fc83
commit 66ddbfc5d5

2
nnn.h
View file

@ -102,6 +102,8 @@ static struct assoc assocs[] = {
static struct key bindings[] = { static struct key bindings[] = {
/* Back */ /* Back */
{ KEY_BACKSPACE, SEL_BACK, "", "" }, { KEY_BACKSPACE, SEL_BACK, "", "" },
{ 8 /* BS */, SEL_BACK, "", "" },
{ 127 /* DEL */, SEL_BACK, "", "" },
{ KEY_LEFT, SEL_BACK, "", "" }, { KEY_LEFT, SEL_BACK, "", "" },
{ 'h', SEL_BACK, "", "" }, { 'h', SEL_BACK, "", "" },
{ CONTROL('H'), SEL_BACK, "", "" }, { CONTROL('H'), SEL_BACK, "", "" },