summaryrefslogtreecommitdiff
path: root/legacy/edje
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-11-17 06:17:09 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-11-17 06:17:09 +0000
commita867b99db0e8c3c91d4504e549fe35d406adf6d4 (patch)
tree0c4813bfbcd5b3e1a744bed1f3613c2d87776965 /legacy/edje
parent38f06f34e832de4446f05cee0348ffd4d00fcf2c (diff)
make click below text put cursor at end
SVN revision: 37690
Diffstat (limited to 'legacy/edje')
-rw-r--r--legacy/edje/src/lib/edje_entry.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c
index dc74f1e185..92d19763a2 100644
--- a/legacy/edje/src/lib/edje_entry.c
+++ b/legacy/edje/src/lib/edje_entry.c
@@ -1060,13 +1060,19 @@ _edje_part_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info
1060 if (!evas_textblock_cursor_char_coord_set(en->cursor, en->cx, en->cy)) 1060 if (!evas_textblock_cursor_char_coord_set(en->cursor, en->cx, en->cy))
1061 { 1061 {
1062 Evas_Coord lx, ly, lw, lh; 1062 Evas_Coord lx, ly, lw, lh;
1063 int line;
1063 1064
1064 evas_textblock_cursor_line_coord_set(en->cursor, en->cy); 1065 line = evas_textblock_cursor_line_coord_set(en->cursor, en->cy);
1065 evas_textblock_cursor_line_geometry_get(en->cursor, &lx, &ly, &lw, &lh); 1066 if (line == -1)
1066 if (en->cx <= lx) 1067 _curs_end(en->cursor, rp->object, en);
1067 _curs_lin_start(en->cursor, rp->object, en); 1068 else
1068 else 1069 {
1069 _curs_lin_end(en->cursor, rp->object, en); 1070 evas_textblock_cursor_line_geometry_get(en->cursor, &lx, &ly, &lw, &lh);
1071 if (en->cx <= lx)
1072 _curs_lin_start(en->cursor, rp->object, en);
1073 else
1074 _curs_lin_end(en->cursor, rp->object, en);
1075 }
1070 } 1076 }
1071 en->selecting = 1; 1077 en->selecting = 1;
1072 _sel_clear(en->cursor, rp->object, en); 1078 _sel_clear(en->cursor, rp->object, en);