diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-08-16 06:22:31 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-08-16 06:22:31 +0800 |
commit | 0cba580858576aba1d4f2b4480e91dc3570c8d62 (patch) | |
tree | 43678464382a6fe9f188a82f58cb5054d479feac /embed/mozilla/EphyFind.h | |
parent | 02250ba19947aab8a099d2890649768e90ff3009 (diff) | |
download | gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.gz gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.zst gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.zip |
Activate the found link with a faked keypress event.
2005-08-16 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed-find.c: (ephy_embed_find_activate_link):
* embed/ephy-embed-find.h:
* embed/mozilla/EphyFind.cpp:
* embed/mozilla/EphyFind.h:
* embed/mozilla/mozilla-embed-find.cpp:
Activate the found link with a faked keypress event.
* src/ephy-find-toolbar.c: (tab_search_key_press_cb),
(entry_key_press_event_cb), (entry_activate_cb),
(ephy_find_toolbar_set_embed), (ephy_find_toolbar_open),
(ephy_find_toolbar_close):
On enter, activate the found link instead of finding the next
occurrence.
Always really give focus to the find bar, instead of faking
keypresses in the find bar entry while focusing the embed.
Fixes bug #307216, bug #311985, bug #312419.
Diffstat (limited to 'embed/mozilla/EphyFind.h')
-rw-r--r-- | embed/mozilla/EphyFind.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/EphyFind.h b/embed/mozilla/EphyFind.h index 7188ffb74..8e85356cb 100644 --- a/embed/mozilla/EphyFind.h +++ b/embed/mozilla/EphyFind.h @@ -24,8 +24,10 @@ #include "ephy-embed.h" #include <nsCOMPtr.h> +#include <gdk/gdktypes.h> class nsITypeAheadFind; +class nsIWebBrowser; class nsIWebBrowserFind; class EphyFind @@ -41,10 +43,13 @@ class EphyFind PRBool Find (const char *aSearchString, PRBool aLinksOnly); PRBool FindAgain (PRBool aForward); + PRBool ActivateLink (GdkModifierType aMask); private: EphyEmbed *mCurrentEmbed; + nsCOMPtr<nsIWebBrowser> mWebBrowser; + #ifdef HAVE_TYPEAHEADFIND nsCOMPtr<nsITypeAheadFind> mFinder; #else |