diff --git a/kilo.c b/kilo.c index af54aae..4aab08f 100644 --- a/kilo.c +++ b/kilo.c @@ -21,6 +21,7 @@ enum editorKey { ARROW_RIGHT, ARROW_UP, ARROW_DOWN, + DEL_KEY, HOME_KEY, END_KEY, PAGE_UP, @@ -104,6 +105,7 @@ int editorReadKey() { // not sent as a page up/dow. Because it can mess up system keybindings. switch (seq[1]) { case '1': return HOME_KEY; + case '3': return DEL_KEY; case '4': return END_KEY; case '5': return PAGE_UP; case '6': return PAGE_DOWN;