toga icon indicating copy to clipboard operation
toga copied to clipboard

iOS App needs a "native" way to remove keyboard from view

Open massenz opened this issue 4 years ago • 3 comments

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.

IMG_3589

massenz avatar Mar 29 '21 03:03 massenz

I'd say this is more of a bug than an enhancement, no?

nuclearfall avatar Dec 10 '21 22:12 nuclearfall

Hi, im facing the exact same issue on Android and also tried to set focus on other widgets but the keyboard remains open

Marekeon avatar Mar 13 '24 06:03 Marekeon

There are some workarounds in #2452.

mhsmith avatar Mar 13 '24 12:03 mhsmith