AnsweredAssumed Answered

OnObjectKeystroke Problem

Question asked by Paul Richardson on Sep 5, 2014
Latest reply on Sep 6, 2014 by Paul Richardson

In Filemaker 13 I have a portal with an OnObjectKeystroke trigger assigned. I'm looking for arrow up and arrow down to reorder portal items.

 

The condition IF Code ( Get ( TriggerKeystroke ) ) = 29 // up arrow

 

works fine, but what I actually want is to trap option-up

 

With the condition IF Code ( Get ( TriggerKeystroke ) ) = 29 and Get (TriggerModifierKeys) = 8 // option-up arrow

 

the script fires twice! This was not the case in Filemaker 12, I'm sure.

 

(In fact even with the condition IF Code ( Get ( TriggerKeystroke ) ) = 29 the script fires twice if a modifier key is held included.)

 

I'll be very grateful for any tips on how to combine keystroke and modifier as a single event in Filemaker 13.

Outcomes