You can put on a keyboard listener, and before you enable the Save button, make sure there is text in the text box. textBox.getText ().length>0 type of thing.
On Jul 20, 12:26 pm, Bakul <[email protected]> wrote: > Hi, > > I have added: > > myTextbox.addChangeListener(new ChangeListener(){ > public void onChange(Widget sender) { > onEdit(); > } > }); > > and onEdit() I am enabling Save/Apply button. > > Problem: > ChangeListener() get fired when myTextbox loses the focus. So when a > person start typing on myTextbox, he is done with entering data but > save/apply button is still not enabled as still focus is on myTextbox. > > If I goes and add KeyBoardListener and try to handle it on onKeyDown > (), for which keyCode I should fire onEdit() <which enables save/apply > button>. I mean it should not be enabled if person press up/down/left/ > right arrow key or any function key or insert/delete key and many > more. > > Is there any known solution to handle this problem? > > Thanks, > Bakul. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
