Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 406381

Summary: [non-Windows] Dragging the mouse past the top/bottom of the text should select the entire first/last line respectively
Product: [ECD] Orion Reporter: Matt N. <mmn100+eclipse>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mihai.sucan, Silenio_Quarti
Version: unspecified   
Target Milestone: 3.0 M2   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Matt N. CLA 2013-04-23 19:44:32 EDT
This is a non-Windows feature that I rely on for quickly selecting blocks of text.

STR:
1) Add multiple non-empty lines of text to a field
2) Place the caret somewhere in the middle of one of the middle lines
3) Click and drag upwards from that point and go past the first line of text

Expected result:
All text preceding the click should be selected, including all of the first line, regardless of the horizontal position of the cursor.

Actual result:
All text preceding the click is selected except for the first line where only text to the right of the cursor position is selected.

The same STR also apply for the last line of text when selecting downwards past the last line of text in the editor.

Note that the cursor doesn't have to leave the editing area, only go past the last line of text, in order for this behaviour to happen with the last line.

This behaviour seems to be standard on OS X (e.g. TextEdit and all other text inputs) and Linux (e.g. gedit and Firefox).
Comment 1 Silenio Quarti CLA 2013-04-29 12:21:42 EDT
gedit (on ubuntu 12.04) is not consistent in this case.  It does select the whole line at the bottom of the file, but not at the top of the file.
Comment 2 Silenio Quarti CLA 2013-04-29 14:14:30 EDT
Changed Mac and Linux behavior. Windows behavior is unchanged.

Fixed

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=6bcb8321d8a85ebdfd1317e899ba1ce26f1c3d9f