Bug 14728
Summary: | Word selection when right-clicking or double clicking can be very confusing | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | dev+webkit, justin.garcia |
Priority: | P2 | Keywords: | InRadar |
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | All | ||
URL: | http://webkit.org/ |
Adam Roben (:aroben)
r24499 <http://trac.webkit.org/projects/webkit/changeset/24499> re-introduced behavior to select the nearest word when right-clicking. However, this behavior can often be very confusing. For example:
1. Go to http://webkit.org/
2. Resize the window so that you can see to the right of the Download button
3. Right-click to the right of the Download button
The word "The" in the heading of the page ("The WebKit Open Source Project") gets selected. This is very far away from the mouse.
You can also end up with only whitespace getting selected, e.g. if you click just to the right of the sentence "If you have more questions, contact us."
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Roben (:aroben)
<rdar://problem/5354455>
Justin Garcia
Happens on double-click too. It's probably the positionForPoint is buggy in that open space.
Justin Garcia
*** Bug 14739 has been marked as a duplicate of this bug. ***
Justin Garcia
I'm going to turn off word selection for non-editable content unless the mouse is over text.
David Kilzer (:ddkilzer)
Fixed in r24561.