Disable Fn/L/Ctrl hotkeys on select WIM menu.

This commit is contained in:
longpanda 2023-01-03 11:29:50 +08:00
parent c6bd857cbe
commit 287d77224c
1 changed files with 2 additions and 0 deletions

View File

@ -1448,6 +1448,7 @@ grub_err_t ventoy_cmd_sel_winpe_wim(grub_extcmd_context_t ctxt, int argc, char *
g_ventoy_menu_esc = 1; g_ventoy_menu_esc = 1;
g_ventoy_suppress_esc = 1; g_ventoy_suppress_esc = 1;
g_ventoy_suppress_esc_default = 0; g_ventoy_suppress_esc_default = 0;
g_ventoy_secondary_menu_on = 1;
grub_snprintf(cfgfile, sizeof(cfgfile), "configfile mem:0x%llx:size:%d", (ulonglong)(ulong)cmd, pos); grub_snprintf(cfgfile, sizeof(cfgfile), "configfile mem:0x%llx:size:%d", (ulonglong)(ulong)cmd, pos);
grub_script_execute_sourcecode(cfgfile); grub_script_execute_sourcecode(cfgfile);
@ -1455,6 +1456,7 @@ grub_err_t ventoy_cmd_sel_winpe_wim(grub_extcmd_context_t ctxt, int argc, char *
g_ventoy_menu_esc = 0; g_ventoy_menu_esc = 0;
g_ventoy_suppress_esc = 0; g_ventoy_suppress_esc = 0;
g_ventoy_suppress_esc_default = 1; g_ventoy_suppress_esc_default = 1;
g_ventoy_secondary_menu_on = 0;
for (node = g_wim_patch_head; node; node = node->next) for (node = g_wim_patch_head; node; node = node->next)
{ {