[ENH]Keyboard contoll of etoy scripts.

Ned Konz ned at bike-nomad.com
Wed Aug 28 16:12:59 UTC 2002


On Wednesday 28 August 2002 07:37 am, Karl Ramberg wrote:
> Now set the 'morph's hasKeyboardFocus' to true.
> Press a key.

Do you find that the concept of "keyboard focus" is useful? What you 
may want to do instead is set your players up as keyboard listeners; 
there is a listen hook for keyboard. You could still switch listening 
off or on; this way you don't have to worry about (global) keyboard 
focus, or touch the PasteUpMorph. The individual Morph can still 
choose to ignore the keyboard events.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list