[squeak-dev] Getting morph events when there is no keyboard focus

tim Rowledge tim at rowledge.org
Tue Jul 23 22:41:51 UTC 2013


I'm trying to get an idea of how to handle keyboard events when there is no keyboard focus; this is for dealing with  general application commands like 'start', 'stop', 'explode', etc.

I *think* it looks like I might need a listener object added to the handmorph but I don't see how to check if the focus is nil as part of that path. An alternative appears to be something to do with the owner of the hand… maybe?
I've spent too long wandering a twisty maze of messages and as a result, got eaten by a Grue. Explanations of how this all works would be appreciated, whether actual or pointers to already written doc. For example, why do all the implementors of #handleFocusEvent: except Morph use both #processEvent: and handleEvent: when it looks like #processEvent also sends #handleEvent: ? I hope there are intelligible explanations out there...

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: ETO: Emulate Toaster Oven




More information about the Squeak-dev mailing list