[Webkit-unassigned] [Bug 110487] Ctrl+Shift+Right in Windows should select the spacing after the word

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 6 12:04:22 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=110487





--- Comment #40 from Ryosuke Niwa <rniwa at webkit.org>  2013-03-06 12:06:46 PST ---
(In reply to comment #39)
> Thanks for your comments!
>
> Editing behavior is not determined at compile-time. I'll explain why there are ifdef's more carefully: the way the next stop is determined, in all platforms, is through a call to the findNextWordFromIndex() method. What my patch is doing is to add a boolean parameter to the signature of this method, so that it looks like this:
> 
>   findNextWordFromIndex(UChar const* buffer, int len, int position, bool forward, bool skipSpaces);
> 
> This way, the calling methods can decide whether to request from this method to skip spaces when searching for the next word. Calling methods, of course, rely on the run-time property EditingBehavior. As you can see, the editing behavior is never determined at run-time.

What I've been telling you ever since this this bug is filed is that we shouldn't do this. Instead, call nextWordPosition twice and call previousWordPosition that'll move the caret to the position after the whitespace. This way, new behavior can be implemented and exposed in DRT everywhere.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list