Skip to content
Snippets Groups Projects
user avatar
nightfox authored
New function: AddAdditionalSelectItemKeys(), which adds additional keys that can be used to select any item (in addition to Enter).  This function takes an array, and the keys are case-sensitive.  For example, to add the key E to select any item (assuming the menu object is lbMenu):
lbMenu.AddAdditionalSelectItemKeys(["E"]);
To make a case-insensitive verison, both the uppercase and lowercase letter would need to be added, as in the following example for E:
lbMenu.AddAdditionalSelectItemKeys(["E", "e"]);

Also, after showing the menu & getting a value from the user (using the GetVal() function), the lastUserInput property will have the user's last keypress.
7498ae74
History
Name Last commit Last update