Project

General

Profile

On KEYDOWN » History » Revision 2

Revision 1 (Per Amundsen, 11/18/2015 03:05 PM) → Revision 2/7 (Per Amundsen, 11/18/2015 03:05 PM)

_Added in 1.9.2_ 

 *<notextile>on <level>:KEYDOWN:<@>:<key,...,keyN>:<commands></notextile>* 

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

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

 *Parameters* 

 <level> - The level for the event to trigger. 
 <matchtext> - The [[Matchtext]] to listen to. 
 <*#?=!@> - The [[Matchtarget]] 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>