On iOS, we move to a position after the whitespace when moving forward by word. This doesn't match the behavior of UIKit or AppKit on macOS, or WebKit on macOS. This would be a regression in any WebKit client which moves from UIWebView to WKWebView.
Created attachment 378154 [details] WIP
See <rdar://problem/51404664> on the context. The plan isn't to land this full patch for that radar but rather to have this patch go through EWS to make sure it doesn't have other bugs before reducing the scope of it down to just affect keyboard arrow key behaviors.
Comment on attachment 378154 [details] WIP Does this code only get executed for direct user actions, or do things like autocorrection and prediction go here too?
(In reply to Alexey Proskuryakov from comment #3) > Comment on attachment 378154 [details] > WIP > > Does this code only get executed for direct user actions, or do things like > autocorrection and prediction go here too? Please see https://bugs.webkit.org/show_bug.cgi?id=201531#c2