different behaviour with MenuMorph

Tom Phoenix rootbeer at redcat.com
Thu Jan 10 04:25:14 UTC 2008

On Jan 4, 2008 5:29 PM, Enno Schwass <onkelenno at mac.com> wrote a long
description that seemed to be about this: Control-click on the Squeak
desktop to bring up a menu, then move the mouse off of the menu across
the menu's lower edge; the menu loses mouse focus.

> Dont know if this is a feature. Can I turn off this?

I think it's safe to say that it's a bug. What seems to be happening
is that there are a number of sub-menus near the bottom of that menu;
when the mouse leaves the last menu item but fails to transfer to its
sub-menu, the hand loses focus on the original menu.

Note that the menu is still completely functional; even though it's no
longer tracking the mouse, you can still use the mouse to click an

The bug seems to be in MenuItemMorph>>deselectTimeOut:, which sets the
mouse focus to nil. Does changing that from nil to owner do what you

  deselectTimeOut: evt
    "Deselect timout. Now really deselect"
    owner selectedItem == self
            evt hand newMouseFocus: owner.
            owner selectItem: nil event: evt].

Here's the bug report I've put on Mantis:


Hope this helps!

--Tom Phoenix

More information about the Squeak-dev mailing list