also handle the Tab keys and call the "activate" handler when Tab is

2008-04-30  Sven Neumann  <sven@gimp.org>

	* app/display/gimpscalecombobox.c
	(gimp_scale_combo_box_entry_key_press): also handle the Tab keys
	and call the "activate" handler when Tab is pressed.


svn path=/trunk/; revision=25553
This commit is contained in:
Sven Neumann
2008-04-30 08:43:37 +00:00
committed by Sven Neumann
parent 89e4fdbc44
commit 9be0d9c98f
2 changed files with 15 additions and 0 deletions

View File

@ -346,6 +346,15 @@ gimp_scale_combo_box_entry_key_press (GtkWidget *entry,
return TRUE;
}
if (event->keyval == GDK_Tab ||
event->keyval == GDK_KP_Tab ||
event->keyval == GDK_ISO_Left_Tab)
{
gimp_scale_combo_box_entry_activate (entry, combo_box);
return TRUE;
}
return FALSE;
}