XUL Programmer's Reference Manual

<keyset>

Attributes Common Children
id  key
   


<key>

Attributes Common Children
id  * * *
key  
keycode  
command  
alt  
shift  
control  
onkeydown  
onkeyup  
onkeypress  
oncommand  

Key bindings are convenience nodes that can be used to easily set up key event handlers on nodes wihtout having to write the JavaScript to check for various keys being down (especially when those keys may vary from platform to platform).

A set of key bindings is defined using the <keyset> tag. It is assumed that all key bindings occur within the keyset are bound to the parent node of the key set. 

Last updated: 4/12/00 Ian Oeschger