[evolution/gnome-3-22] Let the Control + C shortcut behave the same way as Control + Shift
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Let the Control + C shortcut behave the same way as Control + Shift
- Date: Wed, 7 Dec 2016 06:29:00 +0000 (UTC)
commit 283b9786bbda4691196be79c46c9722bf3fdcfbb
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.
modules/webkit-editor/e-webkit-editor.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index f233831..cd857d1 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -5885,12 +5885,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]