Pressing back button while inside a web popup propogates into the app as well

Say I have a web popup open… whenever I click the Android back button from inside the web popup, it gets detected in the Main App also…

Thats completely undesirable behaviour because I do lots of GUI changes on back button…

I temporarily have a work around of sorts, keeping a flag when the popup is opened…

Should I file it as a bug? [import]uid: 64174 topic_id: 34866 reply_id: 334866[/import]

perhaps you should temporarily disable the back button event handler while your webview is open. [import]uid: 199310 topic_id: 34866 reply_id: 138608[/import]

Yes thats sort of what I do…

But still this shouldn’t be the case right? [import]uid: 64174 topic_id: 34866 reply_id: 138625[/import]

Let me ask someone with more Android knowledge than I do about it.
[import]uid: 199310 topic_id: 34866 reply_id: 138626[/import]

While I was writing this up to get someone to look at it, it hit me that it’s possible that the Runtime is getting the key event first and then passing it through to the webpopup instead of the other way around. I want to make sure you are doing a return true at the end of the Runtime handler in main.

[import]uid: 199310 topic_id: 34866 reply_id: 138662[/import]

Yeah yeah! Of course I’m returning true at the end of the listener! :slight_smile: [import]uid: 64174 topic_id: 34866 reply_id: 138679[/import]

perhaps you should temporarily disable the back button event handler while your webview is open. [import]uid: 199310 topic_id: 34866 reply_id: 138608[/import]

Yes thats sort of what I do…

But still this shouldn’t be the case right? [import]uid: 64174 topic_id: 34866 reply_id: 138625[/import]

Let me ask someone with more Android knowledge than I do about it.
[import]uid: 199310 topic_id: 34866 reply_id: 138626[/import]

While I was writing this up to get someone to look at it, it hit me that it’s possible that the Runtime is getting the key event first and then passing it through to the webpopup instead of the other way around. I want to make sure you are doing a return true at the end of the Runtime handler in main.

[import]uid: 199310 topic_id: 34866 reply_id: 138662[/import]

Yeah yeah! Of course I’m returning true at the end of the listener! :slight_smile: [import]uid: 64174 topic_id: 34866 reply_id: 138679[/import]