summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 9f4f3ad517..525a916626 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -1154,7 +1154,9 @@ gtk_im_context_simple_filter_keypress (GtkIMContext *context,
if ((event->state & (ISO_14755_MOD_MASK)) == ISO_14755_MOD_MASK)
{
/* space ends the sequence, and we eat the space */
- if (n_compose > 1 && event->keyval == GDK_space)
+ if (n_compose > 1 &&
+ (event->keyval == GDK_space ||
+ event->keyval == GDK_KP_Space))
{
gtk_im_context_simple_commit_char (context, context_simple->tentative_match);
context_simple->compose_buffer[0] = 0;