summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/menu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/menu.c b/common/menu.c
index 0f5df2c..c50f6dd 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -393,6 +393,15 @@ int menu_show(struct menu *m)
return m->selected->num;
else
print_menu(m);
+ break;
+ case KEY_HOME:
+ m->selected = list_first_entry(&m->entries, struct menu_entry, list);
+ repaint = 1;
+ break;
+ case KEY_END:
+ m->selected = list_last_entry(&m->entries, struct menu_entry, list);
+ repaint = 1;
+ break;
default:
break;
}