- Home /
Back button does nothing when keyboard is open (Android, Pixel 3 XL, unity 2019.2.7f2)
Device/platform: Android, Pixel 3 XL, Unity 2019.2.7f2
Steps to reproduce:
create an InputField
tap on it -> keyboard will appear
tap "back" button
Current behavior:
keyboard does not go away
the device does a single vibration in ~1sec after tap
it is not possible to hide keyboard for around 3 seconds after this
Questions:
Does anyone else experience the same issue? Is this a unity bug?
Is there a way to capture "back" button click when InputField is active/focused and close the keyboard programmatically? Already tried traditional KeyDown -> Escape route, but event is not captured while InputField is active and keyboard is visible.
Thanks in advance
Hi.
Have you managed to find any solutions for this? I'm having the same issue...
Still no solution for this problem? I'm have the same issue with the "back" button... I also need to tap twice outside the input field in order to hide the keyboard. Are these issues related?
Still no solutions? Is it possible to escalate this issue?
Answer by RobinopdeBeek · Aug 21, 2020 at 11:32 AM
Maybe this can help: The issue only occurs when 'Hide Mobile Input' is on (at least in my case). This forum discusses it at length since 2015... https://forum.unity.com/threads/hidden-mobile-input.310709/
In the more recent entries there are links to plugins that create a Native Android InputField on top of your original InputField, and then hides the original. It's not ideal, but it gets the job done. I used: https://github.com/mopsicus/UnityMobileInput
I do hope that someday this issue would just get fixed...
Heads up: The plugins mentioned above have a lot of limitations. For instance, can't change font, vertical alignment, animations, fading. That's why this is actually just a half answer and we definitely need this bug fixed.