[Newbies] Capture keyboard focus for real and true.

Bert Freudenberg bert at freudenbergs.de
Tue Jul 3 08:23:15 UTC 2007

On Jul 3, 2007, at 4:39 , Blake wrote:

> On Mon, 02 Jul 2007 16:56:07 -0700, Bert Freudenberg
> <bert at freudenbergs.de> wrote:
>> Works for me (though you actually do not need the #keyboardFocus:  
>> send).
> Without the #keyboardFocus: self, the focus never goes to the newly
> created Morph.

Sure, it does not need focus when it is listening anyway.

> So, you're saying that your Morph class gets all keyboard events
> regardless of other windows having the focus?

Sure, that's the idea of listening events in general.

Try the attached file-in. Works for me.

- Bert -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: BertKeyMorph.st
Type: application/octet-stream
Size: 592 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070703/2633f7c5/BertKeyMorph-0001.obj
-------------- next part --------------

More information about the Beginners mailing list