This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270817 - Double-click to select differs from shift-cmd-dbl-click to add additional selection in multi select/multi cursor
Summary: Double-click to select differs from shift-cmd-dbl-click to add additional sel...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.2
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-06 15:26 UTC by bronius
Modified: 2017-06-06 20:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of dblclick followed by shift-cmd-dblclick selections (73.27 KB, image/png)
2017-06-06 15:26 UTC, bronius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bronius 2017-06-06 15:26:14 UTC
Created attachment 164478 [details]
Screenshot of dblclick followed by shift-cmd-dblclick selections

Double-click to select a word has one set of boundaries, while shift-command-double-click obeys another.

Take the following PHP:
...
'participants', $options,
'participants', $options,
'participants', $options,
...

If you double-click the first comma between 'participants' and $options, you get a selection of just the "',", but subsequent selects (shift-command-double-click) include the space following so selection becomes "', ".  See attached screenshot.  I don't know which is correct, but they shouldn't be different, should they?

Expected would be that all double-click selections should behave consistently.

My workaround (after having taken the time to HTR this) is to first click into the first selection then doubleclick it.  The trick is to make sure the first double-click to add to selection doesn't also inadvertently retain the original selection as its own selection.

Thanks
-Bronius
Comment 1 bronius 2017-06-06 20:50:15 UTC
Another workaround.. just command-shift-click (forget doubleclick), and cursor-select from there. Duh.