Syntax
int PopUpGetShortct( const PopUpMenu *popUp, int key );
Arguments
popUp the pop-up menu.
key the shortcut key code to find. 0 returns 0 immediately.
Return value
The one-based position of the first matching item, or 0 if there is no match, key is 0 or the object is NULL.
Description
The search includes disabled items and items that open submenus. Use `PopUpSelect()` to attempt selection.