mirror of https://github.com/GNOME/gimp.git
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:
parent
a100804747
commit
6d1711e964
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue