OnLayoutKeystroke
Triggers a script to run when one or more characters are entered from the keyboard either directly or via an input method editor (IME). Use the Get(TriggerKeystroke) function to return the characters that activated the script trigger.
Two types of characters may cause this trigger to activate:
 •
 •
When the script runs
Before the event has been processed.
Modes in which the trigger can be used
Browse, Find, and Preview modes.
Result
You can use the Exit Script script step within the triggered script to return True or False.
 •
 •
Originated in 
FileMaker Pro 10.0
Notes
 •
 •
Use the Get(TriggerModifierKeys), Code, and Char functions to work with special characters such as navigational keys like the Tab and the arrow keys, and with general Unicode characters. See the Code function for a list of navigational keys and the codes reported to a script. The Char function returns the characters for Unicode code points.
 •
1.
2.
3.
An active object with an OnObjectKeystroke script trigger can process a character.
4.
5.
6.
The first of these steps to use the key stops the process. A script executed by the OnObjectKeystroke or OnLayoutKeystroke script trigger can stop further processing of the keystroke by returning False.
 •
 •
 •
 •
 •
See Changing object data without activating script triggers for a list of other actions that do not activate this script trigger.
Related topics 
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects