Edje_Entry: check selection before the cursor position change.
authorMykyta Biliavskyi <m.biliavskyi@samsung.com>
Thu, 20 Aug 2015 02:31:27 +0000 (11:31 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 20 Aug 2015 02:31:27 +0000 (11:31 +0900)
commit41106fe20fe991e42633fbc9a9b7155db971cc90
tree18e8820e55763bf27eda537abcef30e204c0314f
parent0ee28f12e188a9f8a73a3c6e857e6ec0812667ae
Edje_Entry: check selection before the cursor position change.

Summary:
change position of the main textblock cursor
in depends of the selection is present. Change cursor position to
the start or end of selection only when selection is present.
@fix

Test Plan:
Press "Up" and "Down" arrow keys on selected and normal text.
For selected text: the entry cursor should be placed one line
   above or below selection block (in depends from pressed button).
For normal text: the entry cursor should be placed one line
   above or below of the current cursor position.

Reviewers: tasn, Hermet, herdsman

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2948
src/lib/edje/edje_entry.c