Opened 11 years ago

Closed 11 years ago

#471 closed defect (fixed)

Right arrow on selection

Reported by: gz Owned by: mikel
Priority: normal Milestone: Cocoa IDE v1
Component: IDE Version: 1.3
Keywords: Funded Cc:



if I double click and mark (make "blue") one word and the hit the right arrow the cursor go to one position to the right of the last element in the selection. if i double click and mark something in parenthesis and hit the right arrow, the cursor goes to the position one step to the right of the first element in the selection.

normally, in a mac application if you select some text and then hit the right arrow the cursos goes to the position just after the last element of the selection.

Change History (5)

comment:1 Changed 11 years ago by gz

Indeed, all motion-only commands should just collapse the selection instead of (not in addition to) performing their action. When they collapse the selection, they should collapse it to the start or end depending on the intended direction of the command, regardless of which is point or mark in the selection itself.

comment:2 Changed 11 years ago by mikel

  • Owner set to mikel
  • Status changed from new to assigned

comment:3 Changed 11 years ago by alms

  • Keywords Funded added

comment:4 Changed 11 years ago by mikel

I've checked in a fix for right-arrow (and C-f) and left arrow (and C-b) that should have the desired effect (when a aselection is active, only collapse it to the proper end, don't move the insertion point further).

I'll next look through the other movement commands and attempt a similar fix for them.

comment:5 Changed 11 years ago by mikel

  • Resolution set to fixed
  • Status changed from assigned to closed

The desired selection-collapsing behavior for all Forward and Backward movement commands is checked in. I'm closing this one; feel free to reopen if I've overlooked some important classes of movement commands.

Note: See TracTickets for help on using tickets.