[webkit-dev] what is sentencegranularity?
darin at apple.com
Wed Mar 10 15:12:37 PST 2010
On Mar 10, 2010, at 1:05 PM, Ojan Vafai wrote:
> The topic of sentence granularity selections came up in https://bugs.webkit.org/show_bug.cgi?id=33413. I'm trying to understand, moving forward, how to test the correct behavior for sentence granularity.
> As best I can tell, it's not a Mac platform-ism. SentenceGranularity is not supported in NSTextView. Looking at the code, sentenceboundary seems to be unused except it's exposed to the Web via document.execCommand and selection.modify. It was added in http://trac.webkit.org/changeset/13849. Does Safari still use it in AX code or is it leftover? If the former, is there anything other than the layout tests to rely on for determining the expected behavior is?
Safari does use sentence granularity in accessibility code. But it‘s also available through the Mac OS X WebKit API and can be tied to the Cocoa key bindings system by expert users. This set of selectors:
is available for use in both Objective-C and in a key binding dictionary, which can bind a key to one of these operations.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev