Commit 7dd3ce30 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

allow to leave the widget with Ctrl+Tab. Handle GDK_KP_Tab and

2009-03-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptagentry.c (gimp_tag_entry_key_press): allow to
	leave the widget with Ctrl+Tab. Handle GDK_KP_Tab and
	GDK_ISO_Left_Tab.


svn path=/trunk/; revision=28095
parent c06c90b5
2009-03-02 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptagentry.c (gimp_tag_entry_key_press): allow to
leave the widget with Ctrl+Tab. Handle GDK_KP_Tab and
GDK_ISO_Left_Tab.
2009-03-02 Michael Natterer <mitch@gimp.org>
* app/core/gimptagged.[ch]: add gimp_tagged_set_tags() which
......
......@@ -1288,9 +1288,22 @@ gimp_tag_entry_key_press (GtkWidget *widget,
switch (event->keyval)
{
case GDK_Tab:
entry->tab_completion_index++;
entry->suppress_tag_query++;
g_idle_add ((GSourceFunc) gimp_tag_entry_auto_complete, entry);
case GDK_KP_Tab:
case GDK_ISO_Left_Tab:
/* allow to leave the widget with Ctrl+Tab */
if (! (event->state & GDK_CONTROL_MASK))
{
entry->tab_completion_index++;
entry->suppress_tag_query++;
g_idle_add ((GSourceFunc) gimp_tag_entry_auto_complete, entry);
}
else
{
gimp_tag_entry_commit_tags (entry);
g_signal_emit_by_name (widget, "move-focus",
(event->state & GDK_SHIFT_MASK) ?
GTK_DIR_TAB_BACKWARD : GTK_DIR_TAB_FORWARD);
}
return TRUE;
case GDK_Return:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment