Sometimes when filling out an editable field in a PDF Form the button on the bottom right of the keyboard is a checkmark and when pressed it acts as an "Enter" key:
and sometimes the key is a "Return" key and will insert a newline:
I want to understand how to have consistency with this key. Also, sometimes inserting in a newline into a field causes the app to crash with error:
Fatal Exception: java.lang.IndexOutOfBoundsException
setSpan (7 ... 7) ends beyond length 6
I assume this is because the field is supposed to only have length 6, but adding in the newline character somehow gets around the length limit. Is this a bug?
1. Sample project https://drive.google.com/file/d/1usDGubWxLoodpg5w36o2AeDiO8ZOGVX9/view?usp=sharing
2. Video -> https://youtu.be/tS3rbgUJhy0
3. Pdf File https://drive.google.com/file/d/1UiiSkyP_ZFRpfb1tjxlQyQw5hn4d9i2T/view?usp=sharing
4. Platform: Android
5. SfPdfViewer 19.4.0.41
6. Xamarin Forms 17.0.0.343
7. Pixel 5 Android 11.0 Emulator
I should note that this issue only occurs for certain fields. In this example, I used the PIN field on the second page of the form. I entered in 12345, hit enter, and the app crashed.