UiRenderer KeyUp and KeyDown Events (GWT 2.5)

39 views
Skip to first unread message

DrG

unread,
Dec 10, 2012, 12:15:57 PM12/10/12
to google-we...@googlegroups.com
Problem: Having issues getting KeyUp and KeyDown events to be called with UiRenderer.  

Using the syntax below they don't always get called:  

@UiHandler({"inputTextBox"})
void onKeyUpEvent(KeyUpEvent event, Element parent, String name)

Switching to overriding onEnterKeyPressed results in an incorrect parent element? So when I call:

renderer.getInputTextBox(parent).getValue()

The item isn't found because the parent is wrong?

Question: Has anyone successfully used KeyUp/KeyDown in a UiRenderer context and successfully caught the KeyCode being pressed?
Reply all
Reply to author
Forward
0 new messages