Focus on a stringMorph embedded in a PastupMorph

Hilaire Fernandes hilaire at ofset.org
Sat Jan 26 20:23:12 UTC 2008


I discover the problem occurs when the command is invoked from a menu 
open with #invokeModal, with #popUpInWorld: it is fine.
Well, it could make sense.


Hilaire

Hilaire Fernandes a écrit :
> I have a pasteupmorph with a StringMorph into it.
> When I request (through an external command) edit with the
> launchMiniEditor, I immediately lose the the focus of the string
> morph. To get it working I first need to click in the background of
> the PasteUpMorph.
> I have tried various message for keyboard/mouse focus without success.
> 
> Kazuhiro Abe suggested to us a MouseButtonEvent as follow:
> 
> anEvent := MouseButtonEvent new
>        setType: #mouseDown
>        position: aStringMorph bounds center
>        which: 4
>        buttons: 12
>        hand: aStringMorph currentHand
>        stamp: nil.
> anEvent handler: aStringMorph owner.
> aStringMorph launchMiniEditor: anEvent.
> 
> 
> But it does not help. Any clue?
> 
> Hilaire
> 
> 
> 




More information about the Squeak-dev mailing list