functionKey

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
functionKey <pKeyNumber>
Associationscard, field
Summary

Sent when the user presses a function key.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
pKeyNumber

The number of the function key.

Example
on functionKey theKey
  if theKey is 8 then showPaintTools -- a custom handler
  else pass functionKey
end functionKey
RelatedGlossary: message
Message: commandKeyDown, keyDown, help, arrowKey
Description

Handle the functionKey message to let the user perform some action with a function key.

The message is sent to the active (focused) control, or to the current card if no control is focused.

Keyboards typically have twelve function keys, so you can use numbers from 1 to 12 to implement custom actions.

Tagsui