2
I use Delphi XE7
, wanted to know how to treat this issue, Seto the focus on TEdit
, it opens the virtual keyboard Android
, Press the back it closes the keyboard and the focus stays on the TEdit
, but when I press again on Tedit while it’s in focus it no longer opens the virtual keyboard.
Does anyone have any idea how to solve?
It didn’t help, because Tedit is already in focus, it has a way of checking if Tedit itself is in focus, so I could check and then open the keyboard is an idea.
– Jefferson Rudolf
You said in the question "when I put the focus back". If Tedit already has the focus, try to put the code in the
OnClick
orOnTap
tedit.– Daniel Grillo
"when I refocus on Tedit while it’s in focus, "it’s no use, I’ve tried.
– Jefferson Rudolf
edited the question, I was not clear. I’m sorry.
– Jefferson Rudolf
Try the following code on
OnClick
edit1.resetfocus;
edit1.setfocus;
and keep the code ofOnEnter
– Daniel Grillo
I managed to solve, using the same idea that you gave me, instead of putting it on Onclick, I used the Onmouseenter event to open the keyboard and Onexit to close the keyboard, in Viewsource in the project I set up Vkautoshowmode := Tvkautoshowmode.Never, so I can control the keyboard when it should be closed and open. Thanks for the help
– Jefferson Rudolf