Bug 538212 - [navigation] Eclipse opens declaration of variable underneath the mouse without clicking (when releasing)
Summary: [navigation] Eclipse opens declaration of variable underneath the mouse witho...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 4.9 RC1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2018-08-23 11:11 EDT by Martin Afelt CLA
Modified: 2018-08-24 03:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Afelt CLA 2018-08-23 11:11:37 EDT
Eclipse sometimes have a wheird behavior when i want to select code with my mouse to comment it out. I select code while pressing the left mouse button and then release it. I then need to click CTRL and / to comment it out. When i click CTRL (only), exacly when releasing my left mouse button, eclipse jumps to the decleration of the variable that is underneath my mouse. I could reproduce this error very easily by doing the steps above. Please fix this. If you would normaly hold CTRL over a variable, a popup shows up and the first option is to open the declaration. Hope i could help.


-- Configuration Details --
Product: Eclipse IDE 4.8.0.20180619-1200 (org.eclipse.epp.package.java.product)Installed Features:
 org.eclipse.jdt 3.14.0.v20180611-0500
Versioning Plugin:
 org.eclipse.platform 4.8.0.v20180611-0656
Comment 1 Dani Megert CLA 2018-08-23 12:33:03 EDT
> a popup shows up

That only comes when there is more than one choice. Otherwise it directly goes to the declaration.


I can't reproduce this. Please provide a test file where you see that behavior.
Comment 2 Stephan Herrmann CLA 2018-08-24 03:55:58 EDT
If I understand correctly, the reported pressed CTRL before releasing the mouse (during click-drag to select). He seems to expect, that the selection action would be completed before CTRL is processed. This expectation is unsound IMHO. Any modifiers pressed when the mouse button is released are modifying the click itself.

Feel free to re-open if I misunderstood.