I need to write a KeyUpEvent event KeyUpEvent - KeyUpHandler . This handler will be tied to a panel with so many widgets (input fields, text areas, checkboxes, etc.). In this panel, some kind of action will be performed on Enter . But if the focus is in the text area ( <textarea> , class TextArea ) and it is not read-only , then the action should not be performed, because in this case only a line break should occur and that's all. When the focus is on any other element attached to the panel, the action should be performed.
Question: how to determine in the event handler of the KeyUpEvent event whether focus is currently in textarea ?
FocusHandlerandBlurHandler, but then they will have to be hung on all thetextareaand add a field responsible for thetextarea. - angry