mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
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
This commit is contained in:
parent
c06c90b545
commit
7dd3ce30f2
|
@ -1,3 +1,9 @@
|
|||
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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue