Closed Valdnet closed 1 year ago
This happens when there is a "tear" in the text editor:
First, the "tear" disappears, and only after the second tap, the keyboard hides.
I don't know, but it's working now. I've tried it before and was the same as you said. I don't know what I changed but it's working now
The issue is still present in the latest test version.
Please reopen the issue.
Testing it on a real device:
On my Android 10 device, it works like this:
Behavior the difference:
There are two requestFocus functions in the code. requestFocus means that the keyboard and the cursor will focus to an input, i.e the translation input, but those functions are just in the paste button file. Nothing else has that.
Maybe there is an unexpected loop somewhere in the code that repeats the automatic eject of the keyboard. It looks as if editing the window has been repeated.
Maybe setState. I'll see
There is really nothing suspicious in the code. This issue will stay open though if anyone encountered the same problem. Maybe we can have more details about the devices having this issue.
I would check the editing of the window to see if there is anything suspicious there.
I noticed that in a different text editor (another application) First the keyboard hides and then after some time (about 3 second) the "tear" disappears. Maybe this will help you 😉.
It looks as if the disappearance of the "tear" starts editing the window again and the keyboard may pop up.
I tested this issue even more. In my opinion, the keyboard slides out for the second time, when we hide it when the flashing text cursor is currently invisible. You have to hide the keyboard at the moment when the cursor disappears.
The problem may be that reappearing the cursor as visible activates the edit box and therefore the keyboard pops up again 😁.
This issue may be resolved in #61.
I'll close this since it's mostly be a problem with Flutter not SimplyTranslate Mobile.
Steps:
When you hide the keyboard again with the down arrow, the keyboard will hide and then pop out again, or behave in such a way that you have to tap the down arrow twice to hide the keyboard.