Bug 348 : double-clicking whitespace selects adjacent chars
Last modified: 2006-11-11 00:27




Status:
ASSIGNED
Resolution:
-
Priority:
P5
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-05-14 07:39
double clicking whitespace selects everything between the previous and next number, character or break.

for example, clicking this:
i-- )
between -- and ) will select "-- )"

i think this is somewhat related to this bug:
http://dev.processing.org/bugs/show_bug.cgi?id=261
Additional Comment #1 From fry 2006-11-10 07:46
do you know of any reference on what the "correct" behavior would be? a
quick glance didn't turn up anything in the apple HI guidelines:
http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGUserInput/chapter_11_section_3.html#//apple_ref/doc/uid/TP30000361-TP22
Additional Comment #2 From fjen 2006-11-10 09:16
(In reply to comment #1)

nah, but almost any app i know (textedit, bbedit, ...) only selects the whitespace when you
double-click it. including tabs, spaces.
Additional Comment #3 From fry 2006-11-10 09:51
attempted and failed, will come back to it later:

// this is really nasty.. turns out that double-clicking any non-letter
// or digit char gets lumped together.. sooo, this quickly gets messy,
// because really it needs to check whether the chars are of the same
// type.. so a double space or double - might be grouped together,
// but what about a +=1? do + and - get grouped but not the 1? blech,
// coming back to this later. it's not a difficult fix, just a
// time-consuming one to track down all the proper cases.
Additional Comment #4 From fjen 2006-11-11 00:27
some common behaviour (i.e. bbedit, ..):

abc += 123
(6 blocks: "abc", " ", "+", "=", " ", "123")
[which is odd to me "+=" should be one block]

function( super, 1 )
(8 blocks: "function", "( super, 1 )", " ", "super", ",", " ", "1", " ")

i++;
(4 blocks: "i", "+", "+", ";")
[again, "i++" should be one block]

7+=3
(2 block, "7", "3")
["+=" should be one block]

here's some info from apple on selecting (triple-clicking is gonna make you happy):
http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/
XHIGUserInput/chapter_11_section_4.html#//apple_ref/doc/uid/TP30000361-TPXREF26