[evolution] Let the Control + C shortcut behave the same way as Control + Shift



commit 6b6af2b7dc694bec29d1f287d3d04446016c89b3
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Dec 6 16:35:12 2016 +0100

    Let the Control + C shortcut behave the same way as Control + Shift
    
    Some of the internal flags were not set and the code for determining
    whether we own the clipboards content could fail.

 src/modules/webkit-editor/e-webkit-editor.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index bf53502..cea7f38 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -5874,12 +5874,13 @@ webkit_editor_key_press_event (GtkWidget *widget,
            ((event)->keyval == GDK_KEY_v))) {
                if (!e_content_editor_emit_paste_clipboard (E_CONTENT_EDITOR (widget)))
                        webkit_editor_paste (E_CONTENT_EDITOR (widget));
-
                return TRUE;
        }
 
-       if (((event)->state & GDK_CONTROL_MASK) &&
-           ((event)->keyval == GDK_KEY_Insert)) {
+       if ((((event)->state & GDK_CONTROL_MASK) &&
+           ((event)->keyval == GDK_KEY_Insert)) ||
+           (((event)->state & GDK_CONTROL_MASK) &&
+           ((event)->keyval == GDK_KEY_c))) {
                webkit_editor_copy (E_CONTENT_EDITOR (wk_editor));
                return TRUE;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]