Problems typing virtual keyboard Firemonkey Android

1

I have an application running on Android devices (5, 6 and 7) and have a problem typing words - other than auto-completion - because it simply repeats letters randomly. This same problem already occurred in Delphi XE8. I even tried some suggestions to change the keyboard (KeyboardType = Alphabet), but without success. Any tips? Thanks!

    
asked by anonymous 20.03.2018 / 17:28

1 answer

0

I had the same problem as you with Delphi XE7 , I went through a lot of tests and realized that none of the KeyBoardType did not work, Alphabet uses the suggestions on the Android virtual keyboard. Both on the mobile keyboard and GBoard did not work.

I tested it with KeyBoardType = Alphabet but with the option Password checked, if you notice it does not use keyboard suggestions and was not repeating the letters that by the way for me would solve, but has a though, with the option % with checked% it only appears symbols and even with the button to have the possibility to visualize what is being entered did not work.

Then I had to make a small change. Search by unit Password responsible for Android KeyBoard controls among other things. Make a copy of this unit and paste it into the folder of your project and declare it in the project uses to start picking up the changes from that unit.

With unit open search for function FMX.Platform.Android and EnterControl where the following call exists

  

FTextView.setIsPassword (Password)

change to

  

FTextView.setIsPassword (True)

It will activate the Password option without the keyboard suggestions and with the possibility of viewing what you are typing without having a button to do so. For me it solved.

    
22.03.2018 / 20:47