[evolution] Bug 733000 - Splitting quoted part changes clipboard content
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 733000 - Splitting quoted part changes clipboard content
- Date: Tue, 15 Jul 2014 13:09:22 +0000 (UTC)
commit 930a4dffa7c551dc440b3aaf3ec70f569c6b4c15
Author: Tomas Popela <tpopela redhat com>
Date: Tue Jul 15 15:09:12 2014 +0200
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 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 6f54231..a47c5c8 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]