AnsweredAssumed Answered

F key behavior with Keystroke Triggers is inconsistent

Question asked by philmodjunk on Oct 10, 2013
Latest reply on Oct 22, 2013 by philmodjunk

Summary

F key behavior with Keystroke Triggers is inconsistent

Product

FileMaker Pro

Version

12.04

Operating system version

Windows 7

Description of the issue

Many keystroke/modifier key combinations do not trip either OnLayoutKeystroke or OnObjectKeystroke when pressed, because an OS or FileMaker function intercepts the keydowns and the trigger is never tripped. But the F2 key will trip the trigger and Exit Script [False] can be used to suppress its assigned FileMaker function even though all other F keys fail to trip the trigger.

Steps to reproduce the problem

Create this script:
Show Custom Dialog [ Code ( Get ( TriggerKeystroke ) ) ]
Set up the OnLayoutKeystroke trigger to perform it and then press each F key in turn. Note that F2 pops up the custom dialog and also deploys the layout menu.

Then modify the script to include a second line:
Exit Script [ False ]
And note that now pressing F2 shows the dialog without deploying the layout drop down.

Expected result

Either all F keys would fail to trip the trigger or that all would show the behavior seen with F2 (which would be MUCH preferrred.) (or at least that all F keys with application functions would show this behavoir.)

Actual result

F2 trips the trigger and can be suppressed. None of the other F keys do.

Outcomes