From dbc31f80771461921a0339ff21c11e00203307ec Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 11 Oct 2013 16:35:09 +0800 Subject: ui/ncurses: Use OK & Cancel buttons for boot editor completion Rather than using enter to complete a boot_editor session, add OK and Cancel buttons. Enter will move between fields. Signed-off-by: Jeremy Kerr --- ui/ncurses/nc-boot-editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/ncurses/nc-boot-editor.h') diff --git a/ui/ncurses/nc-boot-editor.h b/ui/ncurses/nc-boot-editor.h index ee6d046..dc849b3 100644 --- a/ui/ncurses/nc-boot-editor.h +++ b/ui/ncurses/nc-boot-editor.h @@ -63,6 +63,7 @@ struct boot_editor { struct nc_scr scr; FORM *ncf; FIELD **fields; + FIELD *button_ok, *button_cancel; void *data; struct pmenu *original_pmenu; void (*on_exit)(struct boot_editor *boot_editor, -- cgit v1.2.1