Keyboard.MenuShortcutKey

From Xojo Documentation

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

New in 2005r1

Supported for all project types and targets.

If True, the menu shortcut modifier key was depressed when the current method or event handler began. This property tests the Control key on Windows and Linux and the Command key on Macintosh.

Example

This example detects whether the menu shortcut modifier key was depressed. The code is in the Action event of a Timer.

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