On KEYDOWN » History » Version 3
Per Amundsen, 11/18/2015 03:07 PM
1 | 1 | Per Amundsen | _Added in 1.9.2_ |
---|---|---|---|
2 | |||
3 | 3 | Per Amundsen | *<notextile>on <level>:KEYDOWN:<*#?=!@>:<key,...,keyN>:<commands></notextile>* |
4 | 1 | Per Amundsen | |
5 | 2 | Per Amundsen | Trigger when a user presses a key in a window, can be used to override built-in key-binds. |
6 | 1 | Per Amundsen | |
7 | _See also [[on KEYUP]], [[$keyval]], [[$keychar]], [[$keyrpt]]._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | <level> - The level for the event to trigger. |
||
12 | <*#?=!@> - The [[Matchtarget]] to listen to. |
||
13 | 3 | Per Amundsen | <key,...,keyN> - The [[$keyval]] to listen to. |
14 | 1 | Per Amundsen | <commands> - The commands to be performed when the event listener's criteria is met. |
15 | |||
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | on *:KEYDOWN:*:*:echo -ag Pressed key $keyval in $active |
||
20 | </pre> |