Community
Participate
Working Groups
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
> 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.
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.