When you hit "enter" to select a suggestion, the focus is in the text box, 
not the popup, so you can easily preventDefault().

On Friday, March 8, 2013 12:22:25 PM UTC+1, membersound wrote:
>
> Hi,
>
> having a simple TextArea with SuggestBox. When I select an entry using ENTER 
> in the popup list, then the entry is placed into the TextArea and the 
> cursor is moved one line down due to the linebreak of Enter key.
> Is this intended? How could I prevent this? Like 
> suggestBox.getSuggestionPopup.isVisible(). Unfortunately the suggestionPopup 
> is private and has no accessor in SuggestBox... Otherwise I could attach 
> a custom KeyDownHandler to the suggestBox and prevent ENTER key when popup 
> is visible...
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to