diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2022-09-12 17:33:52 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-09-14 08:43:31 +0200 |
commit | 95fc669774ed15bf17217788865bfd6bda9a7a34 (patch) | |
tree | b5144a304111a3c2a6391ba70a216c9c55c0e03b /common | |
parent | e34158bc331712dc192e4ce6da86a8c80fe7367d (diff) | |
download | u-boot-95fc669774ed15bf17217788865bfd6bda9a7a34.tar.gz u-boot-95fc669774ed15bf17217788865bfd6bda9a7a34.tar.bz2 u-boot-95fc669774ed15bf17217788865bfd6bda9a7a34.zip |
menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling
This is preparation to support menu-driven UEFI BootOrder
variable updated by KEY_PLUS, KEY_MINUS and KEY_SPACE.
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/menu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/menu.c b/common/menu.c index 3e876b55b3..0d19601cf5 100644 --- a/common/menu.c +++ b/common/menu.c @@ -548,4 +548,13 @@ void bootmenu_loop(struct bootmenu_data *menu, /* ^C was pressed */ if (c == 0x3) *key = KEY_QUIT; + + if (c == '+') + *key = KEY_PLUS; + + if (c == '-') + *key = KEY_MINUS; + + if (c == ' ') + *key = KEY_SPACE; } |