aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-07-15 21:09:12 +0800
committerTomas Popela <tpopela@redhat.com>2014-07-15 21:09:12 +0800
commit930a4dffa7c551dc440b3aaf3ec70f569c6b4c15 (patch)
tree71c7de3013609612dc1701708e0b4040af9b0630
parent6f70081c52dc880a378af563802bc373ae9d5ca0 (diff)
downloadgsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.tar
gsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.tar.gz
gsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.tar.bz2
gsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.tar.lz
gsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.tar.xz
gsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.tar.zst
gsoc2013-evolution-930a4dffa7c551dc440b3aaf3ec70f569c6b4c15.zip
Bug 733000 - Splitting quoted part changes clipboard content
Temporarily remove the HTML input event listener from the body element to avoid unwanted modification of the clipboard content. In callback we are selecting all the content in composer (badically Ctrl + A) that's modifying the clipboard content.
-rw-r--r--e-util/e-html-editor-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 6f5423100f..a47c5c8209 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2133,8 +2133,10 @@ html_editor_view_key_press_event (GtkWidget *widget,
/* When user presses ENTER in a citation block, WebKit does
* not break the citation automatically, so we need to use
* the special command to do it. */
- if (e_html_editor_selection_is_citation (selection))
+ if (e_html_editor_selection_is_citation (selection)) {
+ remove_input_event_listener_from_body (view);
return (insert_new_line_into_citation (view, "")) ? TRUE : FALSE;
+ }
}
if (event->keyval == GDK_KEY_BackSpace) {