diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2006-03-02 Christian Persch <chpe@cvs.gnome.org> + + * embed/mozilla/EventContext.cpp: + + Don't activate typeaheadfind on XUL documents. + 2006-02-27 Christian Persch <chpe@cvs.gnome.org> * configure.ac: diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index dd71234f5..70faf0235 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -1072,6 +1072,9 @@ EventContext::CheckKeyPress (nsIDOMKeyEvent *aEvent) rv = node->GetOwnerDocument (getter_AddRefs (doc)); NS_ENSURE_SUCCESS (rv, retval); + nsCOMPtr<nsIDOMXULDocument> xul_document (do_QueryInterface(doc, &rv)); + if (xul_document) return retval; + nsCOMPtr<nsIDOMNSHTMLDocument> htmlDoc (do_QueryInterface (doc)); if (htmlDoc) { |