On 22 May 2012 18:39, Hilaire Fernandes <[email protected]> wrote: > I found I have to override #keyboardFocusChange:, but it is far from a > good solutions. Basicly I want to show/hide a virtual keyboard only for > text edit morph, and when I want it. > yes, but i cannot see how you can do it without an evil overrides.
I think best would be to discuss change/enhancement and integrate it into pharo. So you can legally use it in future without need to rely on overrides, which private to your project. > Thanks > > Hilaire > > Le 22/05/2012 18:15, Igor Stasenko a écrit : >> you will probably need to hook in at >> >> HandMorph>>newKeyboardFocus: >> >> On 22 May 2012 17:38, Hilaire Fernandes <[email protected]> wrote: >>> Hello, >>> >>> I need to take an action when an arbitrary morph got the keyboard focus >>> (a text morph). >>> >>> How can I set up such an action for a given morph? >>> >>> Of course I don't want to override the given morph. Ideally I want to >>> pass a block of code to execute whenever the focus changes. >>> >>> Thanks >>> >>> Hilaire >>> >>> >> >> >> > > -- Best regards, Igor Stasenko.
