diff options
-rw-r--r-- | composer/e-msg-composer.c | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index ff970e4948..b81a764769 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2416,25 +2416,32 @@ msg_composer_key_press_event (GtkWidget *widget, return TRUE; } - if (event->keyval == GDK_KEY_ISO_Left_Tab && - gtk_widget_is_focus (GTK_WIDGET (view))) { - gtk_widget_grab_focus (input_widget); - return TRUE; - } + if (gtk_widget_is_focus (GTK_WIDGET (view))) { + if (event->keyval == GDK_KEY_ISO_Left_Tab) { + gtk_widget_grab_focus (input_widget); + return TRUE; + } - if (((event)->state & GDK_SHIFT_MASK) && ((event)->keyval == GDK_KEY_Insert)) { - g_signal_emit_by_name (WEBKIT_WEB_VIEW (view), "paste-clipboard"); - return TRUE; - } + if (((event)->state & GDK_SHIFT_MASK) && + ((event)->keyval == GDK_KEY_Insert)) { + g_signal_emit_by_name ( + WEBKIT_WEB_VIEW (view), "paste-clipboard"); + return TRUE; + } - if (((event)->state & GDK_CONTROL_MASK) && ((event)->keyval == GDK_KEY_Insert)) { - g_signal_emit_by_name (WEBKIT_WEB_VIEW (view), "copy-clipboard"); - return TRUE; - } + if (((event)->state & GDK_CONTROL_MASK) && + ((event)->keyval == GDK_KEY_Insert)) { + g_signal_emit_by_name ( + WEBKIT_WEB_VIEW (view), "copy-clipboard"); + return TRUE; + } - if (((event)->state & GDK_SHIFT_MASK) && ((event)->keyval == GDK_KEY_Delete)) { - g_signal_emit_by_name (WEBKIT_WEB_VIEW (view), "cut-clipboard"); - return TRUE; + if (((event)->state & GDK_SHIFT_MASK) && + ((event)->keyval == GDK_KEY_Delete)) { + g_signal_emit_by_name ( + WEBKIT_WEB_VIEW (view), "cut-clipboard"); + return TRUE; + } } /* Chain up to parent's key_press_event() method. */ |