Skip to content
  • nightfox's avatar
    7498ae74
    New function: AddAdditionalSelectItemKeys(), which adds additional keys that... · 7498ae74
    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
    New function: AddAdditionalSelectItemKeys(), which adds additional keys that...
    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.
Loading