aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-12-28 12:47:32 +0000
committerThomas White <taw@bitwiz.org.uk>2011-12-28 12:47:32 +0000
commite68dd52395c464de2c66cba3fd7a9b87a7230a9b (patch)
treecc6728e806226fd0c2ca0079bd3f1ef0655573a6
parentd0b29890a5c4722be9849ec05e6568fe3d59d109 (diff)
Rationalise IM handling
-rw-r--r--src/mainwindow.c15
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);