search the next match when return or enter is pressed in the search entry.

2008-08-14  Michael Natterer  <mitch@gimp.org>

	* plug-ins/help-browser/dialog.c (search_entry_key_press): search
	the next match when return or enter is pressed in the search
	entry.


svn path=/trunk/; revision=26568
This commit is contained in:
Michael Natterer 2008-08-14 20:38:07 +00:00 committed by Michael Natterer
parent a100804747
commit 6d1711e964
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-08-14 Michael Natterer <mitch@gimp.org>
* plug-ins/help-browser/dialog.c (search_entry_key_press): search
the next match when return or enter is pressed in the search
entry.
2008-08-14 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-scale.c

View File

@ -1202,11 +1202,17 @@ static gboolean
search_entry_key_press (GtkWidget *entry,
GdkEventKey *event)
{
if (event->keyval == GDK_Escape)
switch (event->keyval)
{
case GDK_Escape:
gtk_widget_hide (searchbar);
webkit_web_view_unmark_text_matches (WEBKIT_WEB_VIEW (view));
return TRUE;
case GDK_Return:
case GDK_KP_Enter:
case GDK_ISO_Enter:
search (gtk_entry_get_text (GTK_ENTRY (entry)), TRUE);
return TRUE;
}