]> Sergey Matveev's repositories - nnn.git/commitdiff
Map BS (8) and DEL (127) key codes to SEL_BACK as well
authorDmitry Yakimenko <detunized@gmail.com>
Fri, 2 Nov 2018 23:03:55 +0000 (00:03 +0100)
committerDmitry Yakimenko <detunized@gmail.com>
Fri, 2 Nov 2018 23:03:55 +0000 (00:03 +0100)
nnn.h

diff --git a/nnn.h b/nnn.h
index 420bd1337e5ef6199f84de602307271289d908c3..07d6774c88d8def31cb644c7bbc750abcbfc663f 100644 (file)
--- 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,      "",     "" },