Project

General

Profile

On KEYDOWN » History » Version 1

Per Amundsen, 11/18/2015 03:05 PM

1 1 Per Amundsen
_Added in 1.9.2_
2
3
*<notextile>on <level>:KEYDOWN:<@>:<key,...,keyN>:<commands></notextile>*
4
5
Trigger when a user presses or releases a key in a window, can be used to override built-in key-binds.
6
7
_See also [[on KEYUP]], [[$keyval]], [[$keychar]], [[$keyrpt]]._
8
9
*Parameters*
10
11
<level> - The level for the event to trigger.
12
<matchtext> - The [[Matchtext]] to listen to.
13
<*#?=!@> - The [[Matchtarget]] to listen to.
14
<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>