mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-11-11 13:10:38 +00:00
Add w and r hotkey for WIMBOOT and GRUB2 mode. (#1837)
This commit is contained in:
parent
36c21a21e4
commit
10b80f2690
@ -945,12 +945,14 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot)
|
|||||||
goto refresh;
|
goto refresh;
|
||||||
|
|
||||||
case (GRUB_TERM_CTRL | 'r'):
|
case (GRUB_TERM_CTRL | 'r'):
|
||||||
|
case 'r':
|
||||||
menu_fini ();
|
menu_fini ();
|
||||||
g_ventoy_grub2_mode = 1 - g_ventoy_grub2_mode;
|
g_ventoy_grub2_mode = 1 - g_ventoy_grub2_mode;
|
||||||
g_ventoy_menu_refresh = 1;
|
g_ventoy_menu_refresh = 1;
|
||||||
goto refresh;
|
goto refresh;
|
||||||
|
|
||||||
case (GRUB_TERM_CTRL | 'w'):
|
case (GRUB_TERM_CTRL | 'w'):
|
||||||
|
case 'w':
|
||||||
menu_fini ();
|
menu_fini ();
|
||||||
g_ventoy_wimboot_mode = 1 - g_ventoy_wimboot_mode;
|
g_ventoy_wimboot_mode = 1 - g_ventoy_wimboot_mode;
|
||||||
g_ventoy_menu_refresh = 1;
|
g_ventoy_menu_refresh = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user