Keystroke events
<< Click to Display Table of Contents >> Navigation: Callbacks > Global events > Keystroke events |
Usage (gig file script only):
On Keystroke matching "t"
// Execute if the user types the single letter ‘t’
End
On Keystroke matching "next"
// Execute if the user (quickly) types the sequence ‘n’ ‘e’ ‘x’ ‘t’
End
Note that prefixes must be unique throughout the script. For example, if you write:
On Keystroke matching "ta"
then you can also write:
On Keystroke matching "tb"
On Keystroke matching "txyz"
but you cannot write:
On Keystroke matching "tap"
because the prefix 'ta' has been previously used.
There are some restrictions on what characters are allowed in a key sequence. Also, keystroke events are only recognized when the main Gig Performer window has the focus.