aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dmitry Yakimenko <detunized@gmail.com>2018-11-03 00:03:55 +0100
committerGravatar Dmitry Yakimenko <detunized@gmail.com>2018-11-03 00:03:55 +0100
commit66ddbfc5d5a5d907122d8b9f818b8662dada308e (patch)
treec09c2e72d27a65a325e311d2160cfa945217f1ed
parentb12a27fc83f20298fdc6bb4c8faf93d2e718de74 (diff)
downloadnnn-66ddbfc5d5a5d907122d8b9f818b8662dada308e.tar.gz
Map BS (8) and DEL (127) key codes to SEL_BACK as well
-rw-r--r--nnn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nnn.h b/nnn.h
index 420bd13..07d6774 100644
--- a/nnn.h
+++ b/nnn.h
@@ -102,6 +102,8 @@ static struct assoc assocs[] = {
static struct key bindings[] = {
/* Back */
{ KEY_BACKSPACE, SEL_BACK, "", "" },
+ { 8 /* BS */, SEL_BACK, "", "" },
+ { 127 /* DEL */, SEL_BACK, "", "" },
{ KEY_LEFT, SEL_BACK, "", "" },
{ 'h', SEL_BACK, "", "" },
{ CONTROL('H'), SEL_BACK, "", "" },