Tuesday, October 21, 2014

Send event for keydown

In a sub class for a textbox i try to convert lower case to upper case. This works ok but i would like to send the upper case as a Event.

// NativeEvent down = Document.get().createKeyDownEvent(false, false, true, false, keyCode);
// DomEvent.fireNativeEvent(down, this, this.getElement());

But this does not seem to trigger the browser event.

Now i do substring and set value. The user does not see this but i feel it's a bit overkill.

Anybody any ideas.?

--
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+unsubscribe@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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment