Syntax
int TopBarGetAccel( const TopBarMenu *topBar, int key );
Arguments
topBar the top bar menu.
key an Alt letter or digit key code from xdev-wtui-inkey.h, such as K_ALT_F or K_ALT_2.
Return value
The one-based position of the first matching item, or 0 if the object is NULL, the key is outside the supported Alt letters and digits or there is no match.
Description
The accelerator is the character after the first `&` in the caption. Matching ignores case and includes disabled items. Use `TopBarSelect()` to attempt selection.