Is there any way for a GWT app to use createKeyPressEvent 
<http://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/Document.html#createKeyPressEvent-boolean-boolean-boolean-boolean-int->
 (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+unsubscr...@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.

Reply via email to