diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-05-30 00:38:04 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-05-30 00:38:04 +0800 |
commit | 5aefdeff8343bb6b4cba2bc1f544683e84c73182 (patch) | |
tree | 8c22148e7906e617119465b185682c8421eaeb1f /src | |
parent | 87299e4f35efdde09a67fd530812725197bbc87c (diff) | |
download | gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.tar gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.tar.gz gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.tar.bz2 gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.tar.lz gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.tar.xz gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.tar.zst gsoc2013-epiphany-5aefdeff8343bb6b4cba2bc1f544683e84c73182.zip |
Don't special-case ' and / if the find bar is already active.
2005-05-29 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-find-toolbar.c: (tab_dom_key_press_cb):
Don't special-case ' and / if the find bar is already active.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-find-toolbar.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 75740c04c..cad443aec 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -178,17 +178,20 @@ tab_dom_key_press_cb (EphyEmbed *embed, event_key = (GdkEventKey *) event; /* check for / and ' which open the find toolbar in text resp. link mode */ - if (event_key->keyval == GDK_slash) + if (GTK_WIDGET_VISIBLE (widget) == FALSE) { - ephy_find_toolbar_open (toolbar, FALSE); - gdk_event_free (event); - return TRUE; - } - else if (event_key->keyval == GDK_apostrophe) - { - ephy_find_toolbar_open (toolbar, TRUE); - gdk_event_free (event); - return TRUE; + if (event_key->keyval == GDK_slash) + { + ephy_find_toolbar_open (toolbar, FALSE); + gdk_event_free (event); + return TRUE; + } + else if (event_key->keyval == GDK_apostrophe) + { + ephy_find_toolbar_open (toolbar, TRUE); + gdk_event_free (event); + return TRUE; + } } /* don't do anything if the find toolbar is hidden */ |