Project

General

Profile

On KEYDOWN » History » Version 5

Per Amundsen, 02/24/2017 09:39 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 4 Per Amundsen
_Haltable using ^_
10
11 1 Per Amundsen
*Parameters*
12
13 5 Per Amundsen
<level> - The [[User Access Level]] for the event to trigger.
14 1 Per Amundsen
<*#?=!@> - The [[Matchtarget]] to listen to.
15 3 Per Amundsen
<key,...,keyN> - The [[$keyval]] to listen to.
16 1 Per Amundsen
<commands> - The commands to be performed when the event listener's criteria is met.
17
18
*Example*
19
20
<pre>
21
on *:KEYDOWN:*:*:echo -ag Pressed key $keyval in $active
22
</pre>