diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-03-02 13:14:32 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-03-02 13:14:32 +0000 |
commit | 3b357584acd4476d0b7cf82351a9e2f0532eb019 (patch) | |
tree | 8aa0742dc86193ac1dd9f24c211cc83647626305 | |
parent | 65da02dab6fa525114f1e9449177c86cf6f52c63 (diff) | |
download | epiphany-3b357584acd4476d0b7cf82351a9e2f0532eb019.tar.gz |
Don't activate typeaheadfind on XUL documents.
2006-03-02 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EventContext.cpp:
Don't activate typeaheadfind on XUL documents.
-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-22 Christian Persch <chpe@cvs.gnome.org> * data/default-prefs-gecko-1-8.js: diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 7dab773d6..199c90189 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -1073,6 +1073,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) { |