diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-03-02 21:14:19 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-03-02 21:14:19 +0800 |
commit | 585505c053875e2e62182df6f85b3116b7764f1e (patch) | |
tree | f68b6656fbbfc5dc2cbe1bd17f15b893ef63634e | |
parent | fc58f00b58a1028a0713a5afe9acfe13c85b9f4b (diff) | |
download | gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.gz gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.bz2 gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.lz gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.xz gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.zst gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.zip |
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-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) { |