logo       

Re: [ENH]Keyboard contoll of etoy scripts.: msg#01276

lang.smalltalk.squeak.general

Subject: Re: [ENH]Keyboard contoll of etoy scripts.

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





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise