[evolution/wip/webkit-composer] EEditorSelection: Replace DOM Selection direction



commit 2d36dd1e398e710efa05ea54d6b3e316f92d7af4
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Feb 26 11:19:28 2014 +0100

    EEditorSelection: Replace DOM Selection direction
    
    Replace it with direction based on the language at the selection point.

 e-util/e-editor-selection.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-editor-selection.c b/e-util/e-editor-selection.c
index 0f6b7c2..3a5f080 100644
--- a/e-util/e-editor-selection.c
+++ b/e-util/e-editor-selection.c
@@ -3593,7 +3593,7 @@ fix_quoting_nodes_after_caret_restoration (WebKitDOMDOMSelection *window_selecti
                return;
 
        webkit_dom_dom_selection_modify (
-               window_selection, "move", "right", "character");
+               window_selection, "move", "forward", "character");
        tmp_node = webkit_dom_node_get_next_sibling (
                webkit_dom_node_get_first_child (prev_sibling));
 
@@ -3617,7 +3617,7 @@ fix_quoting_nodes_after_caret_restoration (WebKitDOMDOMSelection *window_selecti
                NULL);
 
        webkit_dom_dom_selection_modify (
-               window_selection, "move", "left", "character");
+               window_selection, "move", "backward", "character");
 }
 
 /**
@@ -3707,9 +3707,9 @@ e_editor_selection_restore_caret_position (EEditorSelection *selection)
                 * to be (it is in the beginning of parent's element. It can
                 * be avoided by moving with the caret. */
                webkit_dom_dom_selection_modify (
-                       window_selection, "move", "left", "character");
+                       window_selection, "move", "backward", "character");
                webkit_dom_dom_selection_modify (
-                       window_selection, "move", "right", "character");
+                       window_selection, "move", "forward", "character");
 
                webkit_dom_node_normalize (parent_node);
        }


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