aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);