Functions Reference

Table Of Contents
FILEMAKER FUNCTIONS REFERENCE 85
Get(ActiveModifierKeys)
Purpose
Returns a number representing the keyboard modifier keys (for example, Control+Shift) that are
being pressed.
Format
Get(ActiveModifierKeys)
Parameters
None
Data type returned
number
Originated in
FileMaker Pro 6.0 or earlier
Description
The number returned is calculated by summing numbers representing each modifier key being
pressed. The values assigned to the keys are:
Shift = 1
Caps Lock = 2
Ctrl (Windows) and Control (Mac OS) = 4
Alt (Windows) and Option (Mac OS) = 8
Command (Mac OS) = 16
Note For information on how functions evaluate differently on the host versus the client, search the
FileMaker Knowledge Base available at
http://help.filemaker.com.
Examples
Returns the number 9 when Shift+Alt is pressed on a computer running Windows.
You could use this function in a script that includes a custom dialog box script step (with an OK and
Cancel button) to perform some special action if the user presses the Alt (or Option) key while
clicking OK.
Related topics
Contents
Functions reference (alphabetical list)
Get(ActivePortalRowNumber)
Purpose
Returns the number of the portal row containing the focus.