Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
afb3340c
Commit
afb3340c
authored
Jan 03, 2023
by
longpanda
Browse files
Disable Fn/L/Ctrl hotkeys when selecting auto install script or perssitence file.
parent
fdce4a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
+6
-2
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
View file @
afb3340c
...
@@ -3763,13 +3763,15 @@ static grub_err_t ventoy_cmd_sel_auto_install(grub_extcmd_context_t ctxt, int ar
...
@@ -3763,13 +3763,15 @@ static grub_err_t ventoy_cmd_sel_auto_install(grub_extcmd_context_t ctxt, int ar
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
=
defidx
;
g_ventoy_suppress_esc_default
=
defidx
;
g_ventoy_secondary_menu_on
=
1
;
grub_snprintf
(
configfile
,
sizeof
(
configfile
),
"configfile mem:0x%llx:size:%d"
,
(
ulonglong
)(
ulong
)
buf
,
pos
);
grub_snprintf
(
configfile
,
sizeof
(
configfile
),
"configfile mem:0x%llx:size:%d"
,
(
ulonglong
)(
ulong
)
buf
,
pos
);
grub_script_execute_sourcecode
(
configfile
);
grub_script_execute_sourcecode
(
configfile
);
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
;
grub_free
(
buf
);
grub_free
(
buf
);
...
@@ -3871,13 +3873,15 @@ static grub_err_t ventoy_cmd_sel_persistence(grub_extcmd_context_t ctxt, int arg
...
@@ -3871,13 +3873,15 @@ static grub_err_t ventoy_cmd_sel_persistence(grub_extcmd_context_t ctxt, int arg
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
=
defidx
;
g_ventoy_suppress_esc_default
=
defidx
;
g_ventoy_secondary_menu_on
=
1
;
grub_snprintf
(
configfile
,
sizeof
(
configfile
),
"configfile mem:0x%llx:size:%d"
,
(
ulonglong
)(
ulong
)
buf
,
pos
);
grub_snprintf
(
configfile
,
sizeof
(
configfile
),
"configfile mem:0x%llx:size:%d"
,
(
ulonglong
)(
ulong
)
buf
,
pos
);
grub_script_execute_sourcecode
(
configfile
);
grub_script_execute_sourcecode
(
configfile
);
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
;
grub_free
(
buf
);
grub_free
(
buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment