Rg.Plugins.Popup icon indicating copy to clipboard operation
Rg.Plugins.Popup copied to clipboard

Make HideKeyboard call optional on closing of popup

Open pbjob opened this issue 7 years ago • 11 comments

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 avatar Aug 10 '17 00:08 pbjob

@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.

rotorgames avatar Oct 21 '17 07:10 rotorgames

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.

steffenh13 avatar Jun 29 '18 06:06 steffenh13

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.

luccasclezar avatar Jan 25 '19 13:01 luccasclezar

+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.

efimilya avatar Jul 25 '19 15:07 efimilya

I added it in the todo list

rotorgames avatar Jul 25 '19 15:07 rotorgames

Great. Thanks. When can we wait it to be done?

efimilya avatar Jul 25 '19 15:07 efimilya

@efimilya It's not hard but currently I have other important tasks. Maybe after the next release.

rotorgames avatar Jul 25 '19 15:07 rotorgames

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 ?

bhavya27 avatar Apr 27 '20 15:04 bhavya27

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 avatar Apr 28 '20 05:04 bpicard

@bpicard can you share how you solved this on Android?

nirdil avatar May 30 '21 14:05 nirdil

@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?

nirdil avatar May 31 '21 09:05 nirdil