From 5aefdeff8343bb6b4cba2bc1f544683e84c73182 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 29 May 2005 16:38:04 +0000 Subject: Don't special-case ' and / if the find bar is already active. 2005-05-29 Christian Persch * src/ephy-find-toolbar.c: (tab_dom_key_press_cb): Don't special-case ' and / if the find bar is already active. --- src/ephy-find-toolbar.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3