diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-19 17:19:43 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-19 21:23:17 +0800 |
commit | fa54679bab999050d821dbb71ed8b38b640ad008 (patch) | |
tree | 8ecd8609f418fa25c2a41c1297d14e56a85e9e4c | |
parent | 2cd604b86b271519d0b6ef511bc80b8d03e5cfa5 (diff) | |
download | gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.tar gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.tar.gz gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.tar.bz2 gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.tar.lz gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.tar.xz gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.tar.zst gsoc2013-evolution-fa54679bab999050d821dbb71ed8b38b640ad008.zip |
EMsgComposer - Emit clipboard related signals just when EHTMLEditorView has focus
-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. */ |