Bug 558563 - Key equivalent to mouse double-click on source is missing
Summary: Key equivalent to mouse double-click on source is missing
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-22 10:16 EST by Chris Jordan CLA
Modified: 2019-12-22 19:21 EST (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 Chris Jordan CLA 2019-12-22 10:16:52 EST
This form says "Enter bug" and some might not call this a bug, but I can find no better option on Help Contribute to report this apparent design defect.

Despite Product and Version above, this product is Eclipse IDE for C/C++ Developers Version: 2018-12 (4.10.0)

Steps:

1) On C source line

 pig=vec3(.15,.15,.15)*2;

double-click between the first 1 and 5 at caret here https://i.imgur.com/4fVbca8.png - see 15 selected.

2) Double-click between ) and * here https://i.imgur.com/iV2t6kk.png - see .15,.15,.15 (and not ), oddly) selected 

3) Try various keyboard commands for the same effect.

Expected: one found. I'm assuming (given lack of documentation) that this product is supposed to be fully operable with keyboard.

Observed: none found.
Comment 1 Jonah Graham CLA 2019-12-22 12:04:38 EST
The C/C++ Editor component of "Eclipse IDE for C/C++ Developers Version: 2018-12 (4.10.0)" is provided by "Eclipse CDT Version 9.6.0"
Comment 2 Jonah Graham CLA 2019-12-22 12:32:07 EST
This works for me with Alt + Shift plus arrow keys.

See https://help.eclipse.org/2019-12/topic/org.eclipse.platform.doc.user/reference/ref-keybindings.htm and find "Expand Selection to"
Comment 3 Chris Jordan CLA 2019-12-22 15:31:28 EST
> This works for me with Alt + Shift plus arrow keys.

Not for me. Unless you mean a handful of them. Which sounds unlikely since yes obviously anyone can extend a selection on character at a time, but surely the point of the mouse command it to avoid that need.
Comment 4 Jonah Graham CLA 2019-12-22 16:09:55 EST
With my cursor in the middle of an identifier then Alt Shift Arrow selects the entire identifier, same as double clicking on the middle of the identifier.
Comment 5 Chris Jordan CLA 2019-12-22 17:30:04 EST
> With my cursor in the middle of an identifier

That's not following the Steps given for this issue.
Comment 6 Jonah Graham CLA 2019-12-22 18:49:20 EST
Good point, not identical, but like Bug 558564 I suspect it is a lack of specificity in documentation that there is no exact match between keyboard and mouse actions. As mentioned in Bug 558508 there is a double click handler code that handles these code paths and the flow for keyboard is different.

Would you like to provide some patches in this area, either to firm up the documentation or add new features? You have done quite a deep dive on the intricacies and subtilities across a wide range of bug reports here. It would be great if you could follow through and improve it for everyone.

Let me know if you need any pointers. 

In the mean time this is really a platform thing too along with the other items.
Comment 7 Chris Jordan CLA 2019-12-22 19:21:44 EST
> I suspect it is a lack of specificity in documentation that there is no exact match between keyboard and mouse actions.

I think the more likely cause of this mismatch is a lack in the code.

> Would you like to provide some patches in this area, either to firm up the documentation 

User docs? No. I see little value in documenting what looks to me like undesigned (perhaps even undefined) behaviour - which will hopefully be remedied.

Design docs? Sure. But I don't see any.

> or add new feature

To the code?? Goodness! You would not want this end user touching this code! :)