https://bugzilla.wikimedia.org/show_bug.cgi?id=33064
--- Comment #6 from Trevor Parscal <tpars...@wikimedia.org> 2012-02-07 19:12:50 UTC --- This patch works, but is still incomplete because it doesn't handle punctuation properly. On a Mac, using option+left/right yields the following results: Forwards: |This.is.a.test of how.things work. if, there-is punctuation. This.is.a.test| of how.things work. if, there-is punctuation. This.is.a.test of| how.things work. if, there-is punctuation. This.is.a.test of how.things| work. if, there-is punctuation. This.is.a.test of how.things work|. if, there-is punctuation. This.is.a.test of how.things work. |if, there-is punctuation. This.is.a.test of how.things work. if|, there-is punctuation. This.is.a.test of how.things work. if, there|-is punctuation. This.is.a.test of how.things work. if, there-is| punctuation. This.is.a.test of how.things work. if, there-is punctuation|. This.is.a.test of how.things work. if, there-is punctuation.| Backwards: This.is.a.test of how.things work. if, there-is punctuation.| This.is.a.test of how.things work. if, there-is |punctuation. This.is.a.test of how.things work. if, there-|is punctuation. This.is.a.test of how.things work. if, |there-is punctuation. This.is.a.test of how.things work. |if, there-is punctuation. This.is.a.test of how.things |work. if, there-is punctuation. This.is.a.test of |how.things work. if, there-is punctuation. This.is.a.test |of how.things work. if, there-is punctuation. |This.is.a.test of how.things work. if, there-is punctuation. It's important to note that hyphens (-) are treated as whitespace. Thus the following two lines will behave identically forwards and backwards. a -b c- d-e f a b c d e f The logic appears to be something like this: * Ignore leading punctuation or whitespace * Advance to the end of the next word (series of contiguous non punctuation or whitespace characters) If the patch is updated to follow that logic, that should work well on Mac, but may still not work correctly on other platforms. This is because, as mentioned, moving the cursor by word may differ on Windows or Linux, and we should probably aim to provide a consistent experience on each platform. If someone can analyze the behavior of other platforms that would be useful. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l