For cards, fields:
on functionKey <keynumber> end functionKey
on functionKey <keynumber>[, <row>[, <col>]]
Sent to the current card, fields, dataSheets
The functionKey message indicates whether a function key, specified by the <keynumber>, is being pressed. The message first goes to the field or dataSheet, then to the card; if the card has no handler for it, the message travels through the Oracle Media Objects hierarchy. If it reaches Oracle Media Objects itself, Oracle Media Objects issues the functionKey command.
On the Macintosh, functionKey has built-in Undo, Cut, Copy, and Paste functions for <keynumber> values 1 through 4, respectively.
This example demonstrates how you can use the functionKey message in your stacks. Add the following handler to the current card:
on functionKey keynum if keynum is 1 then
if keynum is 2 then Paste
end if end if
This text has been mechanically extracted from the Oracle Media Objects 220.127.116.11 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.