forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionKey.lcdoc
More file actions
42 lines (27 loc) · 849 Bytes
/
functionKey.lcdoc
File metadata and controls
42 lines (27 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Name: functionKey
Type: message
Syntax: functionKey <pKeyNumber>
Summary:
Sent when the user presses a function key.
Associations: card, field
Introduced: 1.0
OS: mac, windows, linux
Platforms: desktop, server
Example:
on functionKey theKey
if theKey is 8 then showPaintTools -- a custom handler
else pass functionKey
end functionKey
Parameters:
pKeyNumber:
The number of the function key.
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.
References: message (glossary), commandKeyDown (message),
keyDown (message), help (message), arrowKey (message)
Tags: ui