[evolution] Bug 753652 - Right click on highlighted text and 'Cut' doesn't work in composer window.



commit d53c300a2a7307ec7e300bc9ab010cce888cdb7d
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Aug 25 11:59:50 2015 +0200

    Bug 753652 - Right click on highlighted text and 'Cut' doesn't work in composer window.
    
    Remove check if the view is focused as when the action is triggered from context
    menu the view is not focused. In the end the action won't be processed if no
    selection is available (and we can have just one selection in composer window).

 e-util/e-html-editor-actions.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 0e4cdf2..4f03a55 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -532,9 +532,6 @@ action_cut_cb (GtkAction *action,
        WebKitDOMDOMSelection *dom_selection;
        WebKitDOMRange *range;
 
-       if (!gtk_widget_has_focus (GTK_WIDGET (view)))
-               return;
-
        document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));
        dom_window = webkit_dom_document_get_default_view (document);
        dom_selection = webkit_dom_dom_window_get_selection (dom_window);


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