ITMSFNCMenuItemInteraction.ItemKeyDown Method
Called when a key is pressed while this item is focused; allows the item to handle the key and suppress default navigation.
API unit family: TMSFNCPopupMenu
Declaring type: ITMSFNCMenuItemInteraction
Syntax
procedure ItemKeyDown(AKeyInfo: TTMSFNCMenuItemKeyInfo; var AClosePopup: Boolean; var ADefaultKeyHandle: Boolean; var ADispatchHandling: Boolean);
Parameters
| Name | Description |
|---|---|
AKeyInfo |
Key code and modifier state of the pressed key. |
AClosePopup |
Set to True to close the containing popup after handling. |
ADefaultKeyHandle |
Set to False to prevent the menu system from applying its built-in key navigation. |
ADispatchHandling |
Set to False to stop the key event from propagating further. |