Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Key Up/Down events ?

 [1/3] from: arolls::bigpond::net::au at: 15-Jun-2001 3:14


Is it possible to capture key up and key down events? ie. When a particular key is pressed, say the A key, I should get: event/type = 'key event/key = #"a" and somewhere where it says 'up or 'down, to indicate what the user was doing - pressing or releasing the key. Anton.

 [2/3] from: javier:aviles:eds at: 14-Jun-2001 15:13


This a sample from how-to: view/new layout [ the-box: box "A Box" forest feel [ engage: func [face action event] [ print [action event/key] ] ] ] focus the-box do-events Javier H. AvilÚs Avila.
> EDS NMxSC
* [javier--aviles--eds--com] TEL. 49-61-00 Ext. 56361

 [3/3] from: arolls:bigpond:au at: 15-Jun-2001 13:05


No, that doesn't do what I want. Thanks anyway. I want to know when a key is pressed and when the key is released again. Further, if two or more keys are pressed simultaneously, I want to see the changes for all the keys (pressing and releasing). For the example below, if you press and hold "A", press and hold "B", then release "A", only events for "B" continue to arrive. There is no event which says A was released. Anton.