[evolution/wip/webkit-composer: 753/966] Swap the directions of caret movement on restoring the caret position.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 753/966] Swap the directions of caret movement on restoring the caret position.
- Date: Wed, 23 Apr 2014 10:56:43 +0000 (UTC)
commit 1c9cf2798871d2f94b04c8cafc58f8d6b4c994f4
Author: Tomas Popela <tpopela redhat com>
Date: Wed Sep 25 14:11:14 2013 +0200
Swap the directions of caret movement on restoring the caret position.
When writing some text into composer this was causing that the caret was
not on a position where was expected.
e-util/e-editor-selection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-selection.c b/e-util/e-editor-selection.c
index 235ecbf..ee7274b 100644
--- a/e-util/e-editor-selection.c
+++ b/e-util/e-editor-selection.c
@@ -3044,8 +3044,8 @@ e_editor_selection_restore_caret_position (EEditorSelection *selection)
/* FIXME If caret position is restored and afterwards the position is saved
* it is not on the place where it supposed 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", "right",
"character");
webkit_dom_dom_selection_modify (window_selection, "move", "left",
"character");
+ webkit_dom_dom_selection_modify (window_selection, "move", "right",
"character");
return;
}
@@ -3060,8 +3060,8 @@ e_editor_selection_restore_caret_position (EEditorSelection *selection)
/* FIXME If caret position is restored and afterwards the position is saved
* it is not on the place where it supposed 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", "right", "character");
webkit_dom_dom_selection_modify (window_selection, "move", "left", "character");
+ webkit_dom_dom_selection_modify (window_selection, "move", "right", "character");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]