Reference > Functions reference > Get functions > Get(TriggerKeystroke)
 
Get(TriggerKeystroke)
Purpose 
Returns the characters that activated an OnObjectKeystroke or OnLayoutKeystroke script trigger.
Format 
Get(TriggerKeystroke)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 10.0
Description 
Returns a value when running a script triggered by an OnObjectKeystroke script trigger or OnLayoutKeystroke script trigger or running a script called from the triggered script; otherwise, returns an empty string. Multiple characters may be returned when the input comes from an input method editor (IME).
Notes 
In FileMaker WebDirect, this function is not supported and returns an empty string.
Examples 
The following code displays the text Processing input... when a carriage return is entered:
If [ Code ( Get(TriggerKeystroke) ) = 13 ]
Show Custom Dialog ["Processing input..."]
End If
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas