Closed Bug 114445 Opened 23 years ago Closed 22 years ago

Implement more Mac-like text selection in URL bar Location field

Categories

(SeaMonkey :: Location Bar, defect)

PowerPC
All
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 62495
Future

People

(Reporter: michael, Assigned: hewitt)

References

(Blocks 1 open bug)

Details

(Whiteboard: DUPEME)

Build 2001120708
Mac OS X

If I am looking at the URL bar and I say to myself, "Self, I would like to
select some text."  I click on the left edge of the text I begin dragging to the
right edge, and the anchor point for the selection is not where I clicked, it is
the left edge of the text in the URL bar.

I am guessing this is part of how "single click entire selection" is
implemented, but some random playing with ie, which behaves much better, reveals
that it is better to detect single click selection of the URL bar on mouse up,
and that way if I wave up to the URL bar and start selecting, I don't get confused.

The trivial workaround is just to click a second time in the URL bar, but the
problem is that I would never have figured that out if I hadn't spent some time
playing with it to file this bug.  I just thought selection in the URL bar was
broken.
Ah, I was wondering when I'd run across this bug. Unfortunately, Reporter, Mozilla's text 
selection behavior mimics Windows. This is how Windows works. It's foisted off on the 
rest of us, sadly.

Mac IE is set up to select text the normal Mac way.

I'm sure there's probably already a bug asking for real Mac text selection behavior, but I'll 
confirm this one as such in the meantime.

Revising Summary
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: MacOS X → Mac System 9.x
Summary: Mac OSX URL Bar, selection behavior on initial click is confusing → Implement more Mac-like text selection in URL bar Location field
Thanks for the info.  I have VirtualPC on my mac, so I checked it out.  What the
URL bar is doing is neither mac nor windows like, but sort of a worst of both
worlds.

On Windows, a click on the the URL bar in IE selects the whole text in the bar,
and no amount of waving the mouse will change that.

On Mozilla running on Mac OSX, a click in the bar selects the whole text bar,
and if you start waving the mouse around, it acts as if you drag selected
starting at the left edge of the url text.

On IE running on Max OSX if you click and drag in the URL bar, selection works
as you would expect in a word processor or text field, but if you click and let
go without dragging the mouse, on mouse up, the whole url text is selected.

This is a trivial bug and could easily be ignored, but I wanted to record to be
straight, sorry if this is wasting your time.
OS: Mac System 9.x → All
Status: NEW → ASSIGNED
Target Milestone: --- → Future
*** Bug 124629 has been marked as a duplicate of this bug. ***
This should probably go in another bug, but since I couldn't find an appropriate
bug I'm noting it here.

In IE (at least on Windows), you can click in the urlbar and, by holding down
the Ctrl key while hitting the left or right arrows, the cursor jumps to the
beginning of any word after a slash (/) or after a dot (.).  If the shift key is
down while this is happening, it expands/contracts the selection in the same manner.

This makes it extremely easy to navigate to different levels of a URL, and is
especially handy for copying the domain only for a given URL.  I've always
missed this functionality in Mozilla.

In Mozilla, Ctrl + left or right jumps to the left and right of the entire URL
unless there is a space in it (which is of course unusual), in which case the
cursor jumps to the beginning of the word after the space (just as it does with
typical text).
There's a couple of somewhat related bugs:
- bug 98546 (mainly to do with where a word stops)
- bug 62491 (opposite of this, presumably applies only to Windows)
- bug 125172 (possibly a duplicate of this bug, someone please check)

I filed bug 125172 asking that double click selects the word under the cursor
and triple click selects the line/paragraph when clicking in the URL bar, as
well as other text fields.  I believe this is Mac-like text selection, so could
be related (if not a duplicate) to this bug.

This is a duplicate
Whiteboard: DUPEME
Blocks: 73812
For future reference, `non-annoying' and `Mac-like' aren't exact synonyms. The
behavior requested here is non-annoying, but it's not intrinsically Mac-like.

*** This bug has been marked as a duplicate of 62495 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.