From 930a4dffa7c551dc440b3aaf3ec70f569c6b4c15 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Tue, 15 Jul 2014 15:09:12 +0200 Subject: 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. --- e-util/e-html-editor-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3