In B4XPages, the back key press (bottom right of the bar at the bottom of the screen) is handled by Main with this Sub:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
End Sub
This then should trigger in the B4XPage this Sub...
How to use KeyPress with B4XPAGES?
I have a webview in B4XMainPage and I would like to use the command webview.back, I don't know how to work with keypress in separate classes
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
Log("teste1")...
Hello,
Some time ago I developed on my application a barcode scanning. I do this intercepting the chars with activity_keypress and when I receive the tab key my application search the barcode.
It works, but I got a problem that my customer reject. The application starts to read the barcode...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.