aboutsummaryrefslogtreecommitdiff
path: root/src/hci/tui/settings_ui.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-06-20 12:21:57 -0700
committerMichael Brown <mcb30@ipxe.org>2024-06-20 13:14:35 -0700
commit122777f789a68512593e4aa6da3ace3d0d8664ec (patch)
tree25e8fc721b355c45e6e10d53f9866e32369f05b2 /src/hci/tui/settings_ui.c
parent76e0933d781474acf52000cba0afaebe32361667 (diff)
downloadipxe-122777f789a68512593e4aa6da3ace3d0d8664ec.zip
ipxe-122777f789a68512593e4aa6da3ace3d0d8664ec.tar.gz
ipxe-122777f789a68512593e4aa6da3ace3d0d8664ec.tar.bz2
[hci] Allow tab key to be used to cycle through UI elements
Add support for wraparound scrolling and allow the tab key to be used to move forward through a list of elements, wrapping back around to the beginning of the list on overflow. This is mildly useful for a menu, and likely to be a strong user expectation for an interactive form. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui/settings_ui.c')
-rw-r--r--src/hci/tui/settings_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index 10c9423..bc08750 100644
--- a/src/hci/tui/settings_ui.c
+++ b/src/hci/tui/settings_ui.c
@@ -381,8 +381,8 @@ static void select_settings ( struct settings_ui *ui,
static int main_loop ( struct settings *settings ) {
struct settings_ui ui;
unsigned int previous;
+ unsigned int move;
int redraw = 1;
- int move;
int key;
int rc;