[ENH]Keyboard contoll of etoy scripts.

Karl Ramberg karl.ramberg at chello.se
Wed Aug 28 20:01:28 UTC 2002


Ned Konz wrote:
> 
> 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.

Good tip. I have implemented is and it seems to work nicely.
Update comming soon.

Karl



More information about the Squeak-dev mailing list