toga
toga copied to clipboard
iOS App needs a "native" way to remove keyboard from view
Is your feature request related to a problem? Please describe.
Once the focus is given to a TextInput the "soft" keyboard appears on screen, and there appears to be no way to make it go away; it is also impossible to remove the focus from the input box.
Describe the solution you'd like
A method added to main_window such as hide_keyboard() (but appreciate it's not portable across platforms) or a focus(False) improvement on the TextInput whose side-effect is to make the keyboard slide away.
Describe alternatives you've considered
I tried to give focus() to non-input elements (such as labels or buttons) but without any effect.
Additional context
See the screenshot: essentially half of the app is not visible even though the need for the keyboard now is gone.

I'd say this is more of a bug than an enhancement, no?
Hi, im facing the exact same issue on Android and also tried to set focus on other widgets but the keyboard remains open
There are some workarounds in #2452.