OSDN Git Service

Up/down arrow moves to beginning/end of buffer
authorRaph Levien <raph@google.com>
Thu, 4 Sep 2014 22:03:14 +0000 (15:03 -0700)
committerRaph Levien <raph@google.com>
Thu, 4 Sep 2014 22:03:14 +0000 (15:03 -0700)
commitfb0431b5253346feb38677138e1a0a5458abaf57
treec7cc6f12aec22e828d68801cf4fd03a2786eefff
parentd35d826fb50f71cf592a72d2dffd5dea75390da3
Up/down arrow moves to beginning/end of buffer

With a hardware keyboard, using up arrow within the top line should
move to the beginning of the buffer, to better match desktop text
editing expectations, and similarly for down arrow on the last line.
This patch implements that behavior.

Bug: 17385784
Change-Id: Ia23c23c9cc2462558bca9aaffec7d83e284d55e8
core/java/android/text/Selection.java