Returns the state of option/alt, cmd/ctrl, shift keys.
PROCEDURE GetModifierFlags(
VAR optionFlag : BOOLEAN;
VAR cmdFlag : BOOLEAN;
VAR shiftFlag : BOOLEAN);def vs.GetModifierFlags():
return (optionFlag, cmdFlag, shiftFlag)| Name | Type | Description |
|---|---|---|
| optionFlag | BOOLEAN | The state of the option/alt key. |
| cmdFlag | BOOLEAN | The state of the cmd/ctrl key. |
| shiftFlag | BOOLEAN | The state of the shift key. |
GetModifierFlags(TRUE, FALSE, TRUE);import vs
# Returns the state of option/alt, cmd/ctrl, shift keys.
optionFlag, cmdFlag, shiftFlag = vs.GetModifierFlags()
vs.Message('GetModifierFlags returned: ' + str((optionFlag, cmdFlag, shiftFlag)))Availability: from Vectorworks 2025