On 4 sep, 15:27, gbuchin <[EMAIL PROTECTED]> wrote: > I have created my own editable combo box. I have a text field and a > button and a pop-up with a list. > In the text box, I have a keyboard listener (specifically I am over- > riding the onKeyDown), > When the pop-up list is show, I want to the left/right/up/down keys to > change the selection in the list, which it does. The problem is that > they also move the cursor in the text box. > I can't seem to figure out how to stop the key. In straight > JavaScript, I can simple "return false;" from the onKeyDown. But there > is no return on the GWT event. > Any thoughts?
it's as easy as myTextBox.cancelKey() ;-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
