[
https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043395#comment-13043395
]
Greg Brown commented on PIVOT-685:
----------------------------------
An index always points between characters. For example, given:
"ABC\n"
0 is between the beginning of the string and A
1 is between A and B
2 is between B and C
3 is between C and the linefeed
4 is between the linefeed and the end of the string
Does that help?
> SHIFT+DOWN keystroke within TextArea do not expand the selection past an
> empty line
> -----------------------------------------------------------------------------------
>
> Key: PIVOT-685
> URL: https://issues.apache.org/jira/browse/PIVOT-685
> Project: Pivot
> Issue Type: Bug
> Components: wtk, wtk-terra
> Environment: n/a
> Reporter: Chris Bartlett
> Priority: Trivial
> Fix For: 2.0.1
>
>
> SHIFT+UP & SHIFT+DOWN keystrokes can be used to expand the selection to the
> previous or next line respectively.
> However SHIFT+DOWN fails to extend the selection past an empty line.
> SHIFT+UP appears to work as expected
> Given the following text, and the caret positioned at the start of the
> TextArea, the first press of SHIFT+DOWN will select 'abc', the second will
> also select 'def', but third and subsequent presses will have no effect due
> to an empty 3rd line.
> 'abc <newline>
> def <newline>
> <empty line>
> ghi'
> Workaround by using the mouse, or SHIFT+LEFT & SHIFT+RIGHT
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira