Get(TriggerKeystroke)
Returns the characters that activated an OnObjectKeystroke or OnLayoutKeystroke script trigger.
Format
Get ( TriggerKeystroke )
Parameters
None
Data type returned
text
Originated in version
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.
Example 1
The following code displays the text Processing input... when a carriage return is entered:
Copy
If [ Code ( Get(TriggerKeystroke) ) = 13 ]
Show Custom Dialog ["Processing input..."]
End If