From 10b80f2690a0401295e25b9d8a378174e591b25b Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 12 Sep 2022 11:24:57 +0800 Subject: [PATCH] Add w and r hotkey for WIMBOOT and GRUB2 mode. (#1837) --- GRUB2/MOD_SRC/grub-2.04/grub-core/normal/menu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/normal/menu.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/normal/menu.c index 62b4e835..3cd17578 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/normal/menu.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/normal/menu.c @@ -945,12 +945,14 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) goto refresh; case (GRUB_TERM_CTRL | 'r'): + case 'r': menu_fini (); g_ventoy_grub2_mode = 1 - g_ventoy_grub2_mode; g_ventoy_menu_refresh = 1; goto refresh; case (GRUB_TERM_CTRL | 'w'): + case 'w': menu_fini (); g_ventoy_wimboot_mode = 1 - g_ventoy_wimboot_mode; g_ventoy_menu_refresh = 1;