summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2013-11-01 18:32:43 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2013-11-01 18:32:43 +0900
commit91bd46eee96c0519a4426ddd90ceae5361f9bc3f (patch)
treea3b2190cb899ba566ab07fbc4308abf4cdaa9584 /src/lib
parent81a847a74de12d8644e8e7bdcf70a5d0f885f820 (diff)
edje/edje_entry.c : By Next/Previous, cursor can reach to the top or the bottom of entry.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_entry.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 159a2b471a..31c6d70ebb 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -1879,7 +1879,11 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
1879 if (shift) _sel_start(en->cursor, rp->object, en); 1879 if (shift) _sel_start(en->cursor, rp->object, en);
1880 else _sel_clear(ed, en->cursor, rp->object, en); 1880 else _sel_clear(ed, en->cursor, rp->object, en);
1881 } 1881 }
1882 _curs_jump_line_by(en->cursor, rp->object, en, -10); 1882 if (!_curs_jump_line_by(en->cursor, rp->object, en, -10))
1883 {
1884 evas_textblock_cursor_line_set(en->cursor, 0);
1885 _curs_lin_start(en->cursor, rp->object, en);
1886 }
1883 if (en->select_allow) 1887 if (en->select_allow)
1884 { 1888 {
1885 if (shift) _sel_extend(ed, en->cursor, rp->object, en); 1889 if (shift) _sel_extend(ed, en->cursor, rp->object, en);
@@ -1897,7 +1901,12 @@ _edje_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
1897 if (shift) _sel_start(en->cursor, rp->object, en); 1901 if (shift) _sel_start(en->cursor, rp->object, en);
1898 else _sel_clear(ed, en->cursor, rp->object, en); 1902 else _sel_clear(ed, en->cursor, rp->object, en);
1899 } 1903 }
1900 _curs_jump_line_by(en->cursor, rp->object, en, 10); 1904 if (!_curs_jump_line_by(en->cursor, rp->object, en, 10))
1905 {
1906 int last = _curs_line_last_get(en->cursor, rp->object, en);
1907 evas_textblock_cursor_line_set(en->cursor, last);
1908 _curs_lin_end(en->cursor, rp->object, en);
1909 }
1901 if (en->select_allow) 1910 if (en->select_allow)
1902 { 1911 {
1903 if (shift) _sel_extend(ed, en->cursor, rp->object, en); 1912 if (shift) _sel_extend(ed, en->cursor, rp->object, en);