Page 1 of 1

Menu Hotkeys?

Posted: Mon Feb 16, 2009 9:34 pm
by Scott Cooper
The ISOLINUX menu system allows hot keys to quickly select a menu item. Would this be useful in the UBCD menus?

Code: Select all

MENU LABEL [^1] Mainboard Tools
This shows the number 1 inside brackets and pressing 1 moves to the line.

Posted: Tue Feb 17, 2009 7:05 am
by Icecube

Posted: Tue Feb 17, 2009 8:24 am
by Scott Cooper
Thanks Icecube.
Victor Chew wrote:
Are you going to include the hotkeys for the menu's? You have added the help text already, which is nice.
Nope. I tried both approach 1) making certain letters in the menu items hotkeys 2) labelling them numerically and using the numbers as hotkeys. I hated both methods (ugly). So unless anyone can recommend something better...


Posted: Wed Feb 18, 2009 3:07 pm
by melee
If there is wide interest, I can make UBCD Creator have the option to add hotkeys to the menus. Since it would be done programatically by UBCD Creator, using the numeric approach would be used (it is simpler). This would allow individuals that liked this method to customize the ISO accordingly, while not forcing the change on everyone else.

Please respond here if people are interested.

Posted: Wed Feb 18, 2009 4:10 pm
by Icecube
Some menus contain more than 10 entries, so you must use something like [1-9],0, [a-z].

Posted: Thu Feb 19, 2009 8:27 pm
by melee
Every programmer knows. You always count starting at 0. :)

Continuing the numbering a-z would be fine. I plan on adding this to the CustomizePanel that will allow users to remove programs currently included in UBCD (including all personal use only software). This will involve turning the current menu systems into an XML format so UBCD Creator can write them out (omitting the programs to remove). I will write some simple Perl scripts to automate this process. This same XML file could also provide shortcut keys (other than [0-9a-z]) if someone else wants to define shortcuts for each menu item.