aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ask.c4
-rw-r--r--bterm.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/ask.c b/ask.c
index 77b7f39..87b4ac9 100644
--- a/ask.c
+++ b/ask.c
@@ -236,10 +236,10 @@ static char *get_input(FILE *in, FILE *out, const char *prompt, const char *init
buf = NULL;
picked = NULL;
goto finished;
- case KEY_CTRL_A:
+ case KEY_CTRL_A: case KEY_HOME:
b = 0;
break;
- case KEY_CTRL_E:
+ case KEY_CTRL_E: case KEY_END:
b = len;
break;
case KEY_CTRL_U: {
diff --git a/bterm.h b/bterm.h
index 07152d7..00fd1cc 100644
--- a/bterm.h
+++ b/bterm.h
@@ -162,6 +162,7 @@ int bgetkey(FILE *in, int *mouse_x, int *mouse_y, int timeout)
case '~':
switch (numcode) {
case 3: return KEY_DELETE;
+ case 4: return KEY_END;
case 5: return KEY_PGUP;
case 6: return KEY_PGDN;
case 15: return KEY_F5;