Bug 349 : selections and arrow-keys
Last modified: 2006-11-12 21:39




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P5
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-05-14 07:47
with a selected piece of code, when you press left or right-arrow-key the text-cursor should jump to the
beginning (left-key) or end (right-key) of the selection.
at the moment it will deselect the text and step one char into the correct direction.
Additional Comment #1 From fry 2006-11-10 09:51
fixed for 0122.
Additional Comment #2 From fry 2006-11-10 10:00
if you get a chance, please try out the svn version to see how this is
working. lots of other general fixes for key bindings and indent in there
too.. they should be very helpful overall, but i need to get them debugged
before making a release.
Additional Comment #3 From fjen 2006-11-11 00:37
checked out svn 122, arrow-keys work ay expected.

other things i found are on the way to your inbox.
Additional Comment #4 From fjen 2006-11-11 00:41
hi ben,

wouldn't wonna mess the bug-report up with pre-release things:
here's what i found in 122 (svn) so far:

- alt-shift-arrow-down and command-shift-arrow-down do not work (should be the same as
shift-arrow-down).

- command-shift-arrow-right at the end of a line won't jump to the next

- same for cmd-shft-arr-left and beginning of lines

- select-all then arrow-right won't work (should jump to the end of the code)
Additional Comment #5 From fry 2006-11-11 09:48
re: alt-shift-arrow-down and command-shift-arrow-down do not work (should
be the same as
shift-arrow-down).

from what i can tell from textwrangler (no bbedit on this machine), this
should select all from the current point to the beginning (or end) of the
document?

re: command-shift-arrow-right at the end of a line won't jump to the next
and: same for cmd-shft-arr-left and beginning of lines

that doesn't seem to be implemented in textwrangler. what editor does that?

re: select-all then arrow-right won't work (should jump to the end of the code)

huh, but left arrow does.. i'm guessing i just need to add a special case
for that.
Additional Comment #6 From fry 2006-11-11 10:32
k, fixed the situation for select-all followed by right arrow in svn.
Additional Comment #7 From fjen 2006-11-11 11:19
(In reply to comment #5)

> re: alt-shift-arrow-down and command-shift-arrow-down do not work (should
> be the same as
> shift-arrow-down).
>
> from what i can tell from textwrangler (no bbedit on this machine), this
> should select all from the current point to the beginning (or end) of the
> document?

yes. bbedit has the same behavoiur.

> re: command-shift-arrow-right at the end of a line won't jump to the next
> and: same for cmd-shft-arr-left and beginning of lines
>
> that doesn't seem to be implemented in textwrangler. what editor does that?

well, to be honest bbedit does not do it either ... i must've been thinking anhead, since it
would make sense to keep on selecting whole lines like that.

> re: select-all then arrow-right won't work (should jump to the end of the code)
>
> huh, but left arrow does.. i'm guessing i just need to add a special case
> for that.

ok. works for revision 2809.

but, another inconsistency with bbedit surfaced:
select a block of code in a downward direction, now press shift-(alt-)arrow-left. in bbedit it
will add to the selection at the beginning of the selection, where in processing-ide it will
remove elements from the end. bbedit basicly uses the arrow-key to decide at which end to
add to the selection.
Additional Comment #8 From fry 2006-11-12 21:39
k, i've added the ctrl/cmd-up/down, though the ctrl- version seems to be
overridden strangely. generally it's working though so i'm closing this bug.

any further issues related to the arrow keys should be filed as a new bug.