The Tool class documentation contains the following constants
CONSTRAIN_MODIFIER_KEY = Shift Key CONSTRAIN_MODIFIER_MASK = Shift Key COPY_MODIFIER_KEY = Menu on Mac, Ctrl on PC COPY_MODIFIER_MASK = Alt on Mac, Ctrl on PC ALT_MODIFIER_KEY = Command on Mac, Menu on PC ALT_MODIFIER_MASK = Command on Mac, Alt on PC"
If I’m not mistaking these constants form pairs and are meant to be used in methods that takes a flags argument for the keys currently being pressed as follows:
if flags & CONSTRAIN_MODIFIER_MASK == CONSTRAIN_MODIFIER_MASK // The constrain modifier key was pressed end
The docs however refers to different keys within one key/mask pair on one system. This must be a documentation error, right? Also I can’t remember ever using a menu key as modifier key on PC and the tutorials says Command is used for copying on Mac, not Menu or Alt.
I’m getting really confused and I don’t have a Mac myself to test with so maybe someone with a Mac can answer these questions:
Is the copy modifier in move and rotate tool Option on Mac? (Ctrl in Windows)
Is the lock/constrain inference/direction key always Shift on Mac? (Always shift in Windows)
What is the move tool toggle auto-fold key on Mac? (Alt on Windows)
What is the axes tool alternate axes orientation key on Mac? (Alt on Windows)