diff --git a/app/tools/gimptexttool-editor.c b/app/tools/gimptexttool-editor.c index 3ae30ccaac..5e2153f7bc 100644 --- a/app/tools/gimptexttool-editor.c +++ b/app/tools/gimptexttool-editor.c @@ -538,14 +538,6 @@ gimp_text_tool_editor_key_press (GimpTextTool *text_tool, } } - if (gtk_im_context_filter_keypress (text_tool->im_context, kevent)) - { - text_tool->needs_im_reset = TRUE; - text_tool->x_pos = -1; - - return TRUE; - } - gimp_text_tool_convert_gdkkeyevent (text_tool, kevent); gimp_text_tool_ensure_proxy (text_tool); @@ -558,6 +550,14 @@ gimp_text_tool_editor_key_press (GimpTextTool *text_tool, return TRUE; } + if (gtk_im_context_filter_keypress (text_tool->im_context, kevent)) + { + text_tool->needs_im_reset = TRUE; + text_tool->x_pos = -1; + + return TRUE; + } + gtk_text_buffer_get_iter_at_mark (buffer, &cursor, gtk_text_buffer_get_insert (buffer)); gtk_text_buffer_get_iter_at_mark (buffer, &selection,