The old logic for cursor movement was buggy when both RTL and LTR text was present in the TextField. Used character BreakIterator instead of finding the character index using hitTest.
Added system test to validate the fix. ------------- Commit messages: - Fix TextField cursor movement issue Changes: https://git.openjdk.org/jfx/pull/1222/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1222&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8242616 Stats: 138 lines in 2 files changed: 121 ins; 10 del; 7 mod Patch: https://git.openjdk.org/jfx/pull/1222.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1222/head:pull/1222 PR: https://git.openjdk.org/jfx/pull/1222