To define a command, you need to specify the key sequence that the operator types to issue the command. You can specify a single key for the key sequence, for example, the function key F2:
Key Sequence |
F2 |
Alternatively, you can specify several keys that needs to be typed in sequence, for example, the function key F2 followed by the Enter key:
Key Sequence |
F2 Enter |
Note: If you use more than one key for the sequence, you need to separate each key with a space.
You will want to avoid the ambiguity in keyboard commands that can occur if you define separate commands that use a common key. For example, if you define a key sequence for one command as F3, and the key sequence for a second command as F3 F4, then when F3 is pressed, the first command would execute immediately; the second command could not execute. To avoid overlapping keyboard commands, add a delimiter to common keyboard commands, for example:
Key Sequence |
F3 Enter |
Command |
SP1 = 50; |
Key Sequence |
F3 F4 Enter |
Command |
SP1 = 100; |
These commands do not execute until the operator types the delimiter (the Enter key).
See Also