ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.82k stars 994 forks source link

feat: Interactive keyboard dismiss (like `UIScrollView.KeyboardDismissMode` `Interactive` in iOS) #6064

Open ericbf opened 1 year ago

ericbf commented 1 year ago

Feature Request

Description

In iOS (at least), you can set the keyboard to dismiss interactively when in a scrolling view (like the messages app, etc). It’d be good to be able to set that behavior in a capacitor app as well.

Platform(s)

iOS (at least), android if there’s an equivalent behavior.

Preferred Solution

A function on the keyboard plugin to enable/disable interactive dismiss or to set the dismiss mode.

Alternatives

Just sudden dismissal of the keyboard when the input loses focus, not being able to dismiss the keyboard by swiping (as the expected behavior for users is)

Additional Context

https://developer.apple.com/documentation/uikit/uiscrollview/keyboarddismissmode

ericbf commented 1 year ago

Anyone alive at capacitor?

kimproductions commented 4 months ago

I would love this feature. Need it so badly in my capacitor app