Reviewers: jlabanca,
Description:
ie9 richtexteditor event fix.
Please review this at http://gwt-code-reviews.appspot.com/1384808/
Affected files:
M user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplIE6.java
Index: user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplIE6.java
===================================================================
--- user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplIE6.java
(revision 9888)
+++ user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplIE6.java
(working copy)
@@ -91,12 +91,14 @@
var elem =
th...@com.google.gwt.user.client.ui.impl.RichTextAreaImpl::elem;
var body = elem.contentWindow.document.body;
- var handler = $entry(function() {
+ var handler = $entry(function(evt) {
if (elem.__listener) {
if
(@com.google.gwt.user.client.impl.DOMImpl::isMyListener(Ljava/lang/Object;)(elem.__listener))
{
// Weird: this code has the context of the script frame, but we
need the
// event from the edit iframe's window.
- var evt = elem.contentWindow.event;
+ // this code is shared with all IE implementations (see
RichText.gwt.xml)
+ // the event can be passed in as argument (IE9) or from the
content window (IE8/7/6)
+ evt = evt || elem.contentWindow.event;
@com.google.gwt.user.client.DOM::dispatchEvent(Lcom/google/gwt/user/client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/gwt/user/client/EventListener;)(evt,
elem, elem.__listener);
}
}
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors