Is there any way for a GWT app to use createKeyPressEvent (or equivalent) in IE11? I just isolated an odd browser console error message to com.google.gwt.dom.client.DOMImplMozilla:
-- private native NativeEvent createKeyEventImpl(Document doc, String type,
boolean canBubble, boolean cancelable, boolean ctrlKey, boolean altKey,
boolean shiftKey, boolean metaKey, int keyCode, int charCode) /*-{
var evt = doc.createEvent('KeyboardEvent');
if (evt.initKeyEvent) {
// Gecko
evt.initKeyEvent(type, canBubble, cancelable, null, ctrlKey, altKey,
shiftKey, metaKey, keyCode, charCode);
} else {
// This happens to be IE11+ as of today
if ($wnd.console) {
$wnd.console.error("Synthetic keyboard events are not supported in this browser");
}
}
return evt;
}-*/;
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment