Thank you for your post.
I can verify that the Get (TriggerModifierKeys) does not work the same as it does (correctly) on a Macintosh.
I have forwarded your entire post to our Development and Software Quality Assurance (Testing) departments so they can confirm and be aware of this issue. I could not find a workaround for the Control or Alt keys.
Not that I represent FMI support or anything, but I wouldn't expect Ctrl to be a capturable key combo on Windows.
It isn't possible to capture keyboard shortcuts using OnObjectKeystroke or OnLayoutKeystroke events. FM always processes keyboard shortcuts, and doesn't capture them. That means you can't capture the command key on Mac, or the Control key on Windows.
(Note that on Windows, on a layout with OnLayoutKeystroke event activated, the script will not run if you do Ctrl-L to go into Layout mode). I would guess that Alt behaves the same way, since Alt is used to specify menus and menu items on Windows and therefore could be considered a keyboard shortcut key.
Thanks for your responses. Darren, I know on windows that Get ( ActiveModifierKeys ) is able to pick up the Alt and Control Keys but not Get(TriggerModifierKeys) and the FileMaker help file says that Get(TriggerModifierKeys) "Returns the state of the keyboard modifier keys (for example, Control+Shift) as they were when a was activated." Windows definately doesn't pick that up and the help also says "See Get ( ActiveModifierKeys ) for a description of the values assigned to the keyboard modifier keys. " and Windows definately picks up the alt and control on Get ( ActiveModifierKeys ) but not on Get(TriggerModifierKeys)