Bug 277411 - Context menu click does not change selection in editor
Summary: Context menu click does not change selection in editor
Status: CLOSED DUPLICATE of bug 19825
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 21:56 EDT by Tom Lane CLA
Modified: 2010-07-04 04:25 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Lane CLA 2009-05-21 21:56:11 EDT
+++ This bug was initially created as a clone of Bug #25278 +++

Steps:
1. In any text file editor, place your cursor somewhere.
2. Right-click somewhere else to bring up the context menu.

Actual result: Brings up the context menu for the initial location of the cursor. If for example you have something in the clipboard and select Paste, it will paste it into the initial location.

Expected result: Should place the cursor where you right-clicked and use that as the context of the context menu. I.e. it should paste where you clicked.


I found Bug #25278 which is about this behavior in a specific component and I think OS-specific, but I'm seeing it generally in all editors on all OSes.
Comment 1 Paul Webster CLA 2009-05-22 06:00:26 EDT
That was about a Tree.  This seems to be about text.

This is native widget behaviour, at least on linux.

PW
Comment 2 Tom Lane CLA 2009-05-22 15:03:09 EDT
Hi.. I must say I'm incredulous that this is NOT_ECLIPSE. I can't find another example of a text editor that follows this behavior on any platform. It seems to be specific to Eclipse. How can that be native widget behavior? Is it a SWT issue perhaps?
Comment 3 Paul Webster CLA 2009-05-22 15:24:11 EDT
(In reply to comment #2)
> Hi.. I must say I'm incredulous that this is NOT_ECLIPSE. I can't find another
> example of a text editor that follows this behavior on any platform.

I must say, I'm incredulous that you can't find another app that does this :-)  gedit, firefox (including the text box used to enter this bug), thunderbird (not that different from firefox), notepad, etc all exhibit this behaviour.

> It seems
> to be specific to Eclipse. 

No.

PW
Comment 4 Paul Webster CLA 2009-05-22 15:24:57 EDT
Although I will point out that Microsoft Word does move the cursor on right mouse click.

PW
Comment 5 Dani Megert CLA 2010-07-04 04:25:56 EDT
.

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