aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2007-05-05 04:00:04 +0800
committerDiego Escalante Urrelo <diegoe@src.gnome.org>2007-05-05 04:00:04 +0800
commitfd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab (patch)
tree5e2adc63964dae8fe6763caa5c220c04c76bb547 /src
parentbe0b0b965e05963d42b9bf21899b4675b0a18e24 (diff)
downloadgsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.tar
gsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.tar.gz
gsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.tar.bz2
gsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.tar.lz
gsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.tar.xz
gsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.tar.zst
gsoc2013-epiphany-fd9a5dcbbd70b6133daf31c7765ede8cdc43d2ab.zip
Make Shift+Return find previous when searching. Patch by Robin Stocker.
2007-05-04 Diego Escalante Urrelo <diegoe@gnome.org> * src/ephy-find-toolbar.c: Make Shift+Return find previous when searching. Patch by Robin Stocker. Fixes #412033 svn path=/trunk/; revision=7021
Diffstat (limited to 'src')
-rw-r--r--src/ephy-find-toolbar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 7c1b85c19..9a016fa4b 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -257,6 +257,14 @@ entry_key_press_event_cb (GtkEntry *entry,
{
handled = ephy_embed_find_activate_link (get_find (toolbar), event->state);
}
+ else if ((event->state & mask) == GDK_SHIFT_MASK &&
+ (event->keyval == GDK_Return ||
+ event->keyval == GDK_KP_Enter ||
+ event->keyval == GDK_ISO_Enter))
+ {
+ handled = TRUE;
+ g_signal_emit (toolbar, signals[PREVIOUS], 0);
+ }
return handled;
}