05-18-2021, 07:57 AM
(05-18-2021, 01:17 AM)longpanda Wrote: F2/F4/F5 are used by Ventoy and have some special process in the C source code (e.g. cannot be nested; use the same variable context...).
So you can only use F6 for custom grub menu.
For example:
Now, if you press F2, then you can NOT press F3/F4 again unless you press ESC to return to the main menu. This is one of the Ventoy's special process in the C source code.
variable context is another aspect, I need to protect the variables used by Ventoy to prevent modified by the custom script. This is implemented by a new variable context.
So not so simple and I think F6 with submenu is enough now.
I tested it and being able to modify the other sub-menus by adding options if necessary could be a plus. Everything works perfectly and I can easily change these menus.