Popup() > Menu display and selection |
Determines if a key code identifies a shortcut key.
:getShortct( <nKey> ) --> mMenuItemPos
Method :getShortct() is used to check if a numeric inkey code is a shortcut key that should trigger a menu action. Shortcut keys are defined when MenuItem() objects are created. They are stored in the instance variable :shortCut of MenuItem objects. If the key code <nKey> is a shortcut key, the method returns the ordinal position of the corresponding menu item as a numeric value. If it is not a shortcut, the return value is zero.
http://www.xHarbour.com