humm ok, that's too much work for me now, plus I cannot know the side-effects. For now I will take your fix in 6736 and create a keymapping only version. like that I can get it integrated this week plus test it. best cami On 2012-10-08, at 21:15, GOUBIER Thierry <thierry.goubier@cea.fr> wrote:
Hi Camillo,
Sorry for not answering earlier; at the moment, I'm on duty and offline during daytime for two weeks :(
For selecting by hand the focus, you can use takeKeyboardFocus on the model of the widget you want to activate; by default, Morphic selects the first keyboard interested morph.
However, it may be hard to find the right place to set the keyboard focus after opening the window. I think that Spec should have the equivalent to VisualWorks' postBuildWith: and postOpenWith: (if my memory is right) to make that easier.
Thierry
________________________________________ De : pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] de la part de Camillo Bruni [camillobruni@gmail.com] Date d'envoi : lundi 8 octobre 2012 20:17 Ã : Pharo-project@lists.gforge.inria.fr Development Objet : [Pharo-project] spec + shortcuts
I just looked at https://code.google.com/p/pharo/issues/detail?id=6736 Everything looks more or less ok, the keymapping integration is nice!
I have one doubt though (and I really don't know anything about spec...).
How do I explicitly set the default focus when opening an spec UI-item?