diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-12-28 12:47:32 +0000 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-12-28 12:47:32 +0000 |
commit | e68dd52395c464de2c66cba3fd7a9b87a7230a9b (patch) | |
tree | cc6728e806226fd0c2ca0079bd3f1ef0655573a6 | |
parent | d0b29890a5c4722be9849ec05e6568fe3d59d109 (diff) |
Rationalise IM handling
-rw-r--r-- | src/mainwindow.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 26fcfaf..2955e20 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -718,17 +718,10 @@ static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, { gboolean r; - /* FIXME: Only if doing sensible text input */ - if ( p->editing_object != NULL ) { - - /* Throw the event to the IM context and let it sort things - * out */ - r = gtk_im_context_filter_keypress( - GTK_IM_CONTEXT(p->im_context), - event); - if ( r ) return FALSE; /* IM ate it */ - - } + /* Throw the event to the IM context and let it sort things out */ + r = gtk_im_context_filter_keypress(GTK_IM_CONTEXT(p->im_context), + event); + if ( r ) return FALSE; /* IM ate it */ p->cur_tool->key_pressed(p->editing_object, event->keyval, p->cur_tool); |