Contents | Index | < Browse | Browse >


   xONKEY   #R or #V or Letter or #KeyValue

Commands attached to this event will be executed when the specified 
key is pressed.

You may specify any of the following :

   xOnKey  L     do commands on pressing of the letter L 
                 (or any letter)

   xOnKey  #13   do commands on hitting ENTER - or other values 
                 (13 is the ASCII value of the ENTER key)

   xONKEY #R     do commands upon the pressing of any raw key
                 (raw keys are the function keys, the arrows, help etc)

   xONKEY #V     do commands upon the pressing of any "normal" or
                 as they say, "vanilla" key.

  Raw keys are the arrows, help & function keys - all others are
  called "Vanilla" keys (God knows why..)

  The internal vars $$RAWKEY.CODE, $$RAWKEY.QUAL, $$VANKEY.CODE
  $$VANKEY.QUAL, $$VANKEY.LETTER, will contain the relevant key codes
  and qualifiers (qualifiers are the shift, alt etc keys).

  This is useful for the #R and #V commands, which will "happen"
  whenever *any* key of their type is pressed. You can then see what
  the key pressed was (by looking at the internal vars) and 
  react accordingly.

  To find out what code number each key has, use SET DEBUG ON, to 
  enter the debug mode and while in it, the values of any keys pressed 
  will printed out.

  Example :  Run Gui   Source 

(see also the GadKey command)