On Nov 22, 2010, at 3:12 PM, Helene Bilbo wrote:
Thank you, Lukas. I handle the Keystrokes like in Method 11.17 in the PharoByExample book. That part works fine. What i canât figure out is - how i can make one Morph always have the keyboard focus (in the example it gets the focus, when the mouse enters the morph and looses the focus, when the mouse leaves).
Hi Helene, did you try Morph>>#takeKeyboardFocus ?
- if i can let one Morph handle the arrow keys, and let keystrokes that are not arrow keys be handled by someone else.
Yes you can, I think that when a key is pressed (or release), an event is thrown through the system, and each object able to catch it use the method handleEvent: Ben
Perhaps that is not a good idea anyway and i should have some kind of playfield handling all keyeventsâ¦
Best regards, Helene. -- View this message in context: http://forum.world.st/How-to-make-a-Morph-that-gets-to-handle-all-arrow-key-... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users