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

Bug 469530

Summary: Preserve the selection on right mouse popup menu when mouse is outside of selection
Product: [ECD] Orion Reporter: Steve Northover <steve_northover>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: curtis.windatt.public, emoffatt
Version: unspecified   
Target Milestone: 10.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Steve Northover CLA 2015-06-05 16:53:13 EDT
1) Select some text
2) Move the mouse outside of the selection
3) Right Click to request the context menu
4) UNWANTED BEHAVIOR: The selection is cleared and the caret moves

While this behavior is standard for many different editors, Eclipse, Sublime and many others don't clear the selection.  The reason might be that when you swipe select quickly, the mouse is often outside of the selection and when you request the menu, the selection gets cleared.
Comment 1 Curtis Windatt CLA 2015-06-10 14:05:53 EDT
This behaviour is inconsistent among other editors.  As most of the context menu commands currently available depend heavily on what you are hovering over, we shouldn't immediately change this behaviour just to match Eclipse.  It will cause some frustration to have to left click before activating the menu.  We will leave the code as is and revisit it again the future.

Opened a bug to add metric for context menu activation, bug 469877
Comment 2 Steve Northover CLA 2015-08-31 13:02:16 EDT
Please fix this as it burns again and again when I used popups.  I understand the argument that says "don't make the guy click twice" but the alternative is for him to lose context.  Further, many different IDE's follow this convention.