Android Question Problem with B4XPages Key_press event

Hello to all the members of the B4A community,

I'm starting to use B4XPages and am in the process of migrating a standard project to B4XPages. However, I'm currently facing an issue: when I display the pages (which were activities in the old project), they have their own KeyPress events, but when I press, for example, the back key, it triggers the event in Main:


Sub Activity_KeyPress (KeyCode As Int) As Boolean
Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
End Sub

How can I capture the KeyPress events of the pages that are currently visible?

Any guidance or something I might be doing wrong?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

 
Upvote 0
Solution
Top