OAF provides two methods of Hot Keys.
Mnemonic (Common) Accelerator Keys: generally used in the Prompt of the button.
Numeric (Application-Specific) Accelerator Keys: generally used in menus or links.
Mnemonic (Common) Accelerator Keys
You can add "&" to the Prompt. For example, "Sea & rch" defines "r" as a Hot Key. You can press ALT + R to trigger this button.
If Prompt already has &, you need to write it as "&" so that OAF will not use it as the Hot Key identifier.
At Runtime, you can use the setText (String) method to dynamically specify the Prompt of the button.
Numeric (Application-Specific) Accelerator Keys
You can define the Access Key in the Item Property list. The expression is "Search (9)". You can press a certain number Key to trigger.
At Runtime, you can use the setAccessKey (char) method to dynamically specify.
Here, char can only be any number in 0-9.
Author: "Soy Milk"