You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Chris Bartlett (JIRA)" <ji...@apache.org> on 2010/12/11 20:19:00 UTC
[jira] Created: (PIVOT-685) SHIFT+UP & SHIFT+DOWN keystrokes within
TextArea do not expand the selection past an empty line
SHIFT+UP & SHIFT+DOWN keystrokes 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 they fail to extend the selection past an empty line.
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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-685) SHIFT+DOWN keystroke within TextArea do
not expand the selection past an empty line
Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Bartlett updated PIVOT-685:
---------------------------------
Description:
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
was:
SHIFT+UP & SHIFT+DOWN keystrokes can be used to expand the selection to the previous or next line respectively.
However they fail to extend the selection past an empty line.
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
Summary: SHIFT+DOWN keystroke within TextArea do not expand the selection past an empty line (was: SHIFT+UP & SHIFT+DOWN keystrokes within TextArea do not expand the selection past an empty line)
Corrected to state that SHIFT+UP appears to work.
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-685:
---------------------------------
Fix Version/s: (was: 2.0.3)
2.0.4
> 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
> Affects Versions: 2.0
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.4
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Roger Whitcomb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Whitcomb updated PIVOT-685:
---------------------------------
Priority: Minor (was: Trivial)
> 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
> Affects Versions: 2.0
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Noel Grandin
> Priority: Minor
> Fix For: 2.0.3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042164#comment-13042164 ]
Sandro Martini commented on PIVOT-685:
--------------------------------------
Hi Noel,
so will it be safer to move it to 2.1 (and resolve there it better, without workarounds) ?
> 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
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042176#comment-13042176 ]
Greg Brown 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.
That doesn't sound right. If I have a text area that contains "\n\n", positioning the caret at 0 should insert before the first newline and positioning it at 1 should insert before the second newline.
> 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
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043378#comment-13043378 ]
Noel Grandin commented on PIVOT-685:
------------------------------------
Greg, you are right.
I'm not having much success tracking this one down, getting lost in the maze of when an index value points to the boundary between 2 characters, and when it points to the character itself.
Makes me want to write some classes which wrap an int and explicitly specify which kind of index they are :-)
Maybe next week my brain will be in better shape.
> 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
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-685:
---------------------------------
Affects Version/s: 2.0.1
2.0
Fix Version/s: (was: 2.0.1)
2.0.2
Assignee: Noel Grandin
Reassigned to Noel, our TextArea expert.
> 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
> Affects Versions: 2.0, 2.0.1
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Noel Grandin
> Priority: Trivial
> Fix For: 2.0.2
>
>
> 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
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044049#comment-13044049 ]
Noel Grandin commented on PIVOT-685:
------------------------------------
Yeah, but sometimes the same variable is used in a context where it means that, and it is also used in a context where 0==A, 1==B, 2==C, etc.
> 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
[jira] [Updated] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-685:
---------------------------------
Affects Version/s: (was: 2.0.1)
Fix Version/s: (was: 2.0.2)
2.0.3
> 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
> Affects Versions: 2.0
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Noel Grandin
> Priority: Trivial
> Fix For: 2.0.3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIVOT-685) SHIFT+DOWN keystroke within TextArea
do not expand the selection past an empty line
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044842#comment-13044842 ]
Greg Brown commented on PIVOT-685:
----------------------------------
True. Maybe a better way to look at it is that an index always points to a character, and there is an implicit, non-existent last character at the end of the content which represents the append position.
> 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