Rg.Plugins.Popup
Rg.Plugins.Popup copied to clipboard
Make HideKeyboard call optional on closing of popup
Please could you make PopupPageRenderer.OnDetachedFromWindows's call to HideKeyboard optional. This would be useful in the case where touch events in the transparent part of the popup are being bubbled up to the parent - if an editable control is touched the keyboard is shown, then when the popup dissapears the keyboard is hidden again.
@pbjob Hi. I will think about it. Maybe I will create some virtual methods in PopupPageRenderer for Keyboard which you will be able to override and the plugin will not hide keyboard if you will not want.
We are also currently encountering this inconsistent behaviour of the popups. On iOS the Keyboard is not dismissed, on Android it is dismissed on open and on close. As we use the popup also as a way to display in-app notifications we would like to have the possibility to disable the keyboard-closing using a property on the PopupPage.
Bump. It doesn't make sense to me that there is no way to disable auto keyboard hiding when you can set BackgroundInputTransparent and pass the click to the parent.
I tried to see if I could make a PR but, except for Android, I couldn't manage to understand which part of the code hides the keyboard. It's pretty straightforward on Android.
+1. Really need not to hide keyboard when popup appearing. It is critical for chat case when new message comes and popup shows and keyboard hides.
I added it in the todo list
Great. Thanks. When can we wait it to be done?
@efimilya It's not hard but currently I have other important tasks. Maybe after the next release.
I am using the popup as a toast of android in both Android & iOS and keyboard hides whenever popup appears/disappears. It is important for my app to never close the keyboard. @rotorgames Did you get the chance to look into it ?
I'm also using it for internal notifications in chats etc. I can fix this on Android without source code modification, but I can't find a workaround like this for iOS. It would be great to have an actual fix.
@bpicard can you share how you solved this on Android?
@rotorgames Is there a way to override the PopupPageRenderer on Android? I'm using the popup to show a list as the user is typing, but as soon as the popup appears the keyboard gets closed and interrupts the typing. I need both OnAttachedToWindow and OnDetachedFromWindow to not close the keyboard... Maybe add an optional configuration object to the platform Init function with an option to tweak that behavior?