aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu/menu.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-27 18:22:21 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-27 18:22:21 -0700
commit4d66117c87409691ddf1501c17d1642040414a7c (patch)
treec8f235271c0912f8d9efd3f553274c0ed29ca39a /com32/menu/menu.h
parentaa278d582d201222e395e33a8a568243d5aa9e3f (diff)
downloadsyslinux-4.00-pre47.tar.gz
syslinux-4.00-pre47.tar.xz
syslinux-4.00-pre47.zip
MENU IMMEDIATE: hotkeys which do not require Entersyslinux-4.00-pre47
The normal behavior for a hotkey is to jump to a specific menu entry. With MENU IMMEDIATE, it activates the menu entry as well. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'com32/menu/menu.h')
-rw-r--r--com32/menu/menu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/menu/menu.h b/com32/menu/menu.h
index 1e596e1d..63e1859a 100644
--- a/com32/menu/menu.h
+++ b/com32/menu/menu.h
@@ -63,6 +63,7 @@ struct menu_entry {
int entry; /* Entry number inside menu */
enum menu_action action;
unsigned char hotkey;
+ bool immediate; /* Hotkey action does not require Enter */
bool save; /* Save this entry if selected */
};
@@ -156,6 +157,7 @@ struct menu {
int timeout;
bool allowedit;
+ bool immediate; /* MENU IMMEDIATE default for this menu */
bool save; /* MENU SAVE default for this menu */
int curentry;