Reviewers: jgw,

Description:
The SuggestBox loses focus when the mouse hovers over the list of
suggestions because MenuBar steals keyboard focus on hover.  This is
particularly annoying if a user leaves the cursor just beneath the text
box.  As soon as the suggestions are shown, the text box loses focus.

In fact, there are other cases where this can be annoying, such as just
having a MenuBar and TextBox in the same app:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3884

Fix:
====
This patch adds an option to MenuBar to disable focus on hover, which
fixes the problem at the expense of losing keyboard focus. SuggestBox
now uses the new option.

Testing:
=======
Manually verified that this works for MenuBar and SuggestBox.



Please review this at http://gwt-code-reviews.appspot.com/132816

Affected files:
  user/src/com/google/gwt/user/client/ui/MenuBar.java
  user/src/com/google/gwt/user/client/ui/SuggestBox.java


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to