WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
25451
Selection base/extent aren't honored on the first horizontal extension
https://bugs.webkit.org/show_bug.cgi?id=25451
Summary
Selection base/extent aren't honored on the first horizontal extension
Justin Garcia
Reported
2009-04-28 11:26:58 PDT
In editable content, create a selection from left to right, then extend the selection with shift-left. The left side of the selection (instead of the extent) is modified. See
http://www.betalogue.com/2009/04/22/selections/
for a report of this. We apparently match AppKit here but changing this seems sensible.
Attachments
patch w/o layout tests or changelog
(3.62 KB, patch)
2009-04-28 12:45 PDT
,
Justin Garcia
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Justin Garcia
Comment 1
2009-04-28 11:27:52 PDT
if (!m_lastChangeWasHorizontalExtension) { m_lastChangeWasHorizontalExtension = true; Position start = m_sel.start(); Position end = m_sel.end(); switch (direction) { // FIXME: right for bidi? case RIGHT: case FORWARD: m_sel.setBase(start); m_sel.setExtent(end); break; case LEFT: case BACKWARD: m_sel.setBase(end); m_sel.setExtent(start); break; } }
Justin Garcia
Comment 2
2009-04-28 11:31:01 PDT
http://trac.webkit.org/changeset/7608
Justin Garcia
Comment 3
2009-04-28 11:33:11 PDT
I think we continue to reset the base/extent if you double or triple click and then start extending.
Justin Garcia
Comment 4
2009-04-28 11:34:00 PDT
I meant "I think we should continue to reset the base/extent if you double or triple click and then start extending".
Justin Garcia
Comment 5
2009-04-28 12:45:26 PDT
Created
attachment 29860
[details]
patch w/o layout tests or changelog fixes the bug. no layout test yet though. I'm going to come back to this.
Justin Garcia
Comment 6
2009-04-28 15:28:44 PDT
This behavior matches the HIG:
http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGUserInput/XHIGUserInput.html#//apple_ref/doc/uid/TP30000361-TPXREF17
Closing.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug