When I am typing into a TEdit last word repeats

Allan_Fernandes
Allan_Fernandes used Ask the Experts™
on
When I start typing into a TEdit (bound to String data field) the last word gets inserted automatically
eg:
Previous state = 'Hi There'
I want to add 'H'
I get 'Hi ThereThereH'
This happens only on the Android and not when running the same on Windows
I am using Delphi Seattle FireMonkey components
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
It's not a FMX Problem.
I'm rather sure that your problem comes from Swype Keyboard on your Smartphone.
https://en.wikipedia.org/wiki/Swype

Check if you have Swype installed on your Smartphone...

Commented:
For testing you can switch back to your standard keyboard as follows:

1.) With your Keyboard shown on screen, open the notification panel by doing a swipe from the top-most part of the Display to the lower part

2.) From the notifications panel, tap on "Choose input method". You will see a list of available input method for your smartphone.

3.) From the list of input method options, for example tap on "Samsung Keyboard" to change your keyboard to standard

Author

Commented:
What you say is correct. There is slight difference that I do not have  Swype but 'Google Keyboard' so on uninstalling it the apk is working fine.
Problem is that since I am a developer I cannot ask my users to do this process on their mobiles.
Also that I have never faced this issue otherwise on my mobile.
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Commented:
But perhaps you can tell your users to configure their virtual keyboards and to Switch off Auto-Fill mode...

Author

Commented:
I will develop for a customer (like a cake shop) but I will never get in touch with mobile user.
Software architect
Top Expert 2012
Commented:
try to change caret position in OnEnter event:
procedure TForm1.Edit1Enter(Sender: TObject);
begin
  (Sender as TEdit).SelLength := 0;
  (Sender as TEdit).SelStart := Length((Sender as TEdit).Text);
end;

Open in new window

Author

Commented:
Somehow my application has stopped working and am unable to test this out. Please hold another day or two.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial