diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-08 10:03:30 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-14 15:33:01 +1100 |
commit | f8211e81bd2ca61a0deab61ccdab48027640b498 (patch) | |
tree | 4337912697bd0e8a732b43b6752e2ea5ed3ff132 /ui/ncurses | |
parent | 28bd67dc4b57442dd1cd26794f44c66e700f7a9d (diff) | |
download | talos-petitboot-f8211e81bd2ca61a0deab61ccdab48027640b498.tar.gz talos-petitboot-f8211e81bd2ca61a0deab61ccdab48027640b498.zip |
ui/ncurses/menu: Allow space to select menu items
To keep consistent with buttons, which also accept space.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses')
-rw-r--r-- | ui/ncurses/nc-menu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-menu.c b/ui/ncurses/nc-menu.c index 5dc6469..eb7cfdf 100644 --- a/ui/ncurses/nc-menu.c +++ b/ui/ncurses/nc-menu.c @@ -238,6 +238,7 @@ static void pmenu_process_key(struct nc_scr *scr, int key) if (menu->on_new) menu->on_new(menu); break; + case ' ': case '\n': case '\r': if (item->on_execute) |