Closed darcywong00 closed 1 week ago
Test specification and instructions
Note: The reverse text selection does not happen from one point to another. It's restricted to the last letter of the word. I observed this behavior in Android 13 (Physical Device) and emulator devices in Android 9 and 12 versions. However, it worked well, and I passed this test case. Thanks.
Changes in this pull request will be available for download in Keyman version 17.0.321-beta
Fixes #11360
@mcdurdin went spelunking in the Android code and found
getSelectionStart()
andgetSelectionEnd()
return -1 if there's no selection or cursor. Reference https://developer.android.com/reference/android/text/Selection#getSelectionEnd(java.lang.CharSequenceIn those cases (likely a race condition), we should no-op on
updateSelectionRange()
since there's no valid selection to pass to KeymanWeb.User Testing (from #11360)
Setup - Install PR build of Keyman for Android and enable Keyman as the default system keyboard