[Webkit-unassigned] [Bug 164519] New: Word transformations apply to a single word instead of entire selection if selection is made by triple-clicking
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 8 10:13:28 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=164519
Bug ID: 164519
Summary: Word transformations apply to a single word instead of
entire selection if selection is made by
triple-clicking
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: Unspecified
URL: data:text/html,<div%20contenteditable>Triple-click%20t
his%20sentence,%20then%20control-click%20and%20choose%
20Transformations%20>%20Make%20Upper%20Case
OS: Unspecified
Status: NEW
Keywords: InRadar
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mitz at webkit.org
<rdar://problem/27487147>
To reproduce:
Navigate to the URL, triple-click the sentence to select it, then control-click and choose Transformations > Make Upper Case
Result:
Only the word in which the control-click occurred is transformed and stays selected
Note:
The implementation of word transformations begins with performing the SelectWord command. The intent is to expand the selection to encompass whole words (thatâs how the command behaves in NSTextView). When made with a triple-click, the selectionâs base and extent are the same (the position of the click). It then expands to a word around that position. This happens in the VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity call from VisibleSelection::validate. It seems like we need a different code path for expanding to a desired granularity.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161108/bb5ce378/attachment.html>
More information about the webkit-unassigned
mailing list