Android and iOS keyboard issue with undo
Posted: Mon Aug 11, 2025 10:48 pm
Using your Editor2 demo, try this on Android (it does occur on iOS, but nowhere nearly as bad).
Type a few words, but leave the caret at the last word you typed (no space). Now type 3 more non-space chars and then start tapping the Undo more than 3 times. Watch the behavior to what gets undone. You should see the last word eventually get undone as expected, but then it starts coming back. It will do that 3 times before it starts undoing the other words you typed (but may repeat the same behavior). The undo buffer seems to have gone wonky (technical term).
If I have text already loaded, and I place the caret at the end of a word and tap a few chars, the undo will undo the existing word but will come back as you keep hitting the undo, at least on Android (don't see that on iOS).
TRichViewFMX v23
Delphi 12.3
Type a few words, but leave the caret at the last word you typed (no space). Now type 3 more non-space chars and then start tapping the Undo more than 3 times. Watch the behavior to what gets undone. You should see the last word eventually get undone as expected, but then it starts coming back. It will do that 3 times before it starts undoing the other words you typed (but may repeat the same behavior). The undo buffer seems to have gone wonky (technical term).
If I have text already loaded, and I place the caret at the end of a word and tap a few chars, the undo will undo the existing word but will come back as you keep hitting the undo, at least on Android (don't see that on iOS).
TRichViewFMX v23
Delphi 12.3