From 6e0fde5cfb0241158167300958f1b8dd5828b1c7 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 4 Feb 2022 22:30:53 +0100 Subject: [PATCH] menu: Support HOME and END shortcuts --- common/menu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/menu.c b/common/menu.c index 4d7efd4f..9c76a66e 100644 --- a/common/menu.c +++ b/common/menu.c @@ -832,6 +832,12 @@ timeout_aborted: } goto refresh; } + case GETCHAR_HOME: + selected_entry = 0; + goto refresh; + case GETCHAR_END: + selected_entry = max_entries - 1; + goto refresh; case GETCHAR_CURSOR_UP: if (selected_entry == 0) selected_entry = max_entries - 1;