Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit b5df322

Browse files
author
christian@quelltextlich.at
committed
Upon selection in a SuggestBox's pop up, focus the text field
After selecting a value from a SuggestBox's suggestion list, the suggestion list closes and focus snaps back to the body element. However, users expect the focus to be in the corresponding ValueBox. So upon the user selecting a value, we set the focus to the ValueBox per default. Fixes issue 8051. Change-Id: I08ba1abf8432ef4ad65c0a6b57983067d66b0d9f Review-Link: https://gwt-review.googlesource.com/#/c/2100/ Review by: goktug@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11593 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 parent 4c854a2 commit b5df322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

user/src/com/google/gwt/user/client/ui/SuggestBox.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ public void onSuggestionsReady(Request request, Response response) {
680680
};
681681
private final SuggestionCallback suggestionCallback = new SuggestionCallback() {
682682
public void onSuggestionSelected(Suggestion suggestion) {
683+
box.setFocus(true);
683684
setNewSelection(suggestion);
684685
}
685686
};

0 commit comments

Comments
 (0)