Bug 526603 - Right click doesn't change line selection in source editor
Summary: Right click doesn't change line selection in source editor
Status: CLOSED DUPLICATE of bug 19825
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.7.1   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-28 16:23 EDT by Zhian Luo CLA
Modified: 2017-11-12 11:51 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhian Luo CLA 2017-10-28 16:23:12 EDT
The right click in the source editor doesn't change the line selection. For commands that applicable to specific line (i.e. Run to Line) in the context menu, have to left click to select particular line first before right click to bring up the context menu. It would be much easier to use if right click changes the line selection and cursor position as well as brings up the context menu just like what MS Visual Studio does.
Comment 1 Nathan Ridge CLA 2017-10-28 16:45:48 EDT
Interesting. I haven't noticed this because I don't use the context menu very often (I prefer to use keyboard shortcuts), but you're right.

I wonder if there are users who have come to rely on the current behaviour, and expect that for the currently selected line / word, they can perform an action from the context menu by right-clicking *anywhere* in the editor.
Comment 2 Nathan Ridge CLA 2017-10-28 16:49:15 EDT
This behaviour is actually not specific to the C++ editor. It happens also in the Java editor, plain text editor, etc. That suggests the behaviour is defined by the Eclipse Platform's text editor framework, and would need to be changed there.

I'm moving the bug to the Platform :: Text component accordingly.
Comment 3 Dani Megert CLA 2017-11-12 11:51:13 EST

*** This bug has been marked as a duplicate of bug 19825 ***