cordova-plugin-keyboard icon indicating copy to clipboard operation
cordova-plugin-keyboard copied to clipboard

Implement keyboardWillShow / keyboardDidShow on Android

Open eb1 opened this issue 7 years ago • 5 comments

Thanks so much for creating / maintaining this plugin! It's been a boon to the app that I've been working on.

I've got one enhancement request that would make it even more amazing: to implement the keyboardWillShow / keyboardDidShow events on the Android side, passing along the keyboard height -- so we can change the UI as appropriate in our apps. It looks like there is the start of a solution here: https://pspdfkit.com/blog/2016/keyboard-handling-on-android/.

eb1 avatar Jun 05 '17 16:06 eb1

There was a previous pull request to add this feature (#15), but at the time I didn't see much of a need for it and the code worried me. It looks similar to this solution though, so perhaps we can revisit it. It seems to work well enough for ionic users.

I probably won't be able to implement this in the near future, but if somebody creates a PR, I'll definitely look at it.

cjpearson avatar Jun 08 '17 16:06 cjpearson

I would also very much need some sort of detection mechanism when keyboard gets hidden on Android !

I have some stuff that are getting hidden when keyboard is open (bottom navigation for example), implemented it by detecting if input is focused od blurred, and it worked awesome on both Android and iOS until I noticed that on Android you can press physical back button once to close keyboard but focus remains !

turshija avatar Jun 30 '17 00:06 turshija

+1 this is something I want as well.

Moghul avatar Jul 17 '17 12:07 Moghul

Hi, no news from it ? definitely a must have feature. Anyone can confirm the PR working great without any side-cases ?

sam2x avatar Feb 26 '18 04:02 sam2x

Nevermind, tried https://github.com/ionic-team/cordova-plugin-ionic-keyboard and it's working well. Thanks

sam2x avatar Feb 26 '18 05:02 sam2x