Keyboard.AsyncMenuShortcutKey

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aKeyboard.AsyncMenuShortcutKey

New in 2005r1

Supported for all project types and targets.

If True, the menu shortcut modifier key is depressed. This property tests the Control key on Windows and Linux and the Command key on Macintosh.

Example

The following example detects the menu modifier on the user’s platform.

If Keyboard.AsyncMenuShortcutKey Then
// handle the keyboard event here....
MessageBox("keyboard event detected...")
End If