MenuItems Cannot be Closed Using Enter Button in 7.5

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MenuItems Cannot be Closed Using Enter Button in 7.5

Runar Jordahl
In VisualWorks 7.5 go to "Settings" -> "Look and Feel" and try
changing "User interface look:" by selecting an item using the Enter
button (Return button) on the keyboard. No selection happens and menu
is not closed. In 7.4 the menu is closed if you follow the same steps.

I tested this problem on Windows XP.

Internally MenuView>>selectedMenuItem: is called and the selected
MenuItem is set into instance variable #selectedValue. But somehow the
window holding the menu is not closed. The user can therefore continue
moving the mouse cursor over the menu. This causes
highlightedMenuItemView: to be called which sets instance variable
#selectedValue with the domain object held by the MenuItem. In some
situations we have had walkbacks in #pullDownAction after this has
happened: This methods expects instance variable #selectedValue to
have a MenuItem.

We fixed the walkbacks by modifying #openFromMenuButton: , but it
would be great if an AR could be created to solve the Enter button
problem too.

Kind regards
Runar Jordahl