[
https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042161#comment-13042161
]
Noel Grandin commented on PIVOT-685:
------------------------------------
The problem here is that the way we have defined selection indexes, it is
impossible to distinguish between the index that indicates before the first
newline, and the index that indicates before the second newline.
The obvious fix is to include the \n character in the calculation of indexes,
but that will introduce a bunch of special cases elsewhere.
> 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