feat: Parse DEL key, does not do anything yet.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user