[Cuis-dev] Flickering with some widgets

Luciano Notarfrancesco luchiano at gmail.com
Wed Jul 15 22:44:26 PDT 2026


I was thinking, perhaps Morph>>handlesKeyboardFocus should answer false so
that morphs don't get focus by default unless you implement this method?
Would that lead to more predictable behaviour? What's the advantage of the
current behaviour? It just saves you from implementing handlesKeyboardFocus
in your morphs or does it have any other advantage?

On Thu, Jul 16, 2026 at 12:45 AM Juan Vuletich <juan at cuis.st> wrote:

> Exactly as Luciano says. If the morphs in the list handle keyboard focus,
> they get it, meaning the list loses it. A quick test is to define this in
> BorderedBoxMorph:
>
> handlesKeyboardFocus
>     ^(self class == BorderedBoxMorph) not
>
> So, it is a matter of using morphs that don't take keyboard focus.
>
> HTH,
> On 2026-07-14 5:28 AM, Luciano Notarfrancesco via Cuis-dev wrote:
>
> Hi Hilaire,
> I think this happens because the morphs inside the list are handling
> keyboard focus, so when the mouse pointer hovers one of the items the
> keyboard focus changes (the list loses the focus and the color changes).
> One way to deal with it is to lock the morphs that you use as list items,
> just send them the message #lock before adding them to the list. I’m not
> sure what’s the best way to do it, did you find a better solution or do you
> have other ideas?
>
> On Sun, Jul 12, 2026 at 21:59 Hilaire Fernandes via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> Hi,
>>
>> Since the latest changes, I have observed flickering when hovering some
>> widgets of Cuis-Smalltalk-UI
>>
>> For example, PluggableListOfMorph example1 openInWorld
>>
>> I think it is related to focus attribution changing between owner and
>> children.
>>
>> Thanks
>>
>> Hilaire
>>
>> -- http://mamot.fr/@drgeo
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
> --
> Juan Vuletichwww.cuis.stgithub.com/jvuletichresearchgate.net/profile/Juan-Vuletichindependent.academia.edu/JuanVuletichpatents.justia.com/inventor/juan-manuel-vuletich
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260716/6cd56db5/attachment.htm>


More information about the Cuis-dev mailing list