Project

General

Profile

On KEYDOWN » History » Revision 6

Revision 5 (Per Amundsen, 02/24/2017 09:39 PM) → Revision 6/7 (Per Amundsen, 04/14/2020 09:47 PM)

_Added in 1.9.2_ 

 *<notextile>on <level>:KEYDOWN:<*#?=!@>:<key,...,keyN>:<commands></notextile>* 

 Trigger when a user presses a key in a window, can be used to override built-in key-binds. 

 _See also [[on KEYUP]], [[on CHAR]], [[$keyval]], [[$keychar]], [[$keyrpt]]._ 

 _Haltable using ^_ 

 *Parameters* 

 <level> - The [[User Access Level]] for the event to trigger. 
 <*#?=!@> - The [[Matchtarget]] to listen to. 
 <key,...,keyN> - The [[$keyval]] to listen to. 
 <commands> - The commands to be performed when the event listener's criteria is met. 

 *Example* 

 <pre> 
 on *:KEYDOWN:*:*:echo -ag Pressed key $keyval in $active 
 </pre>