I wrote an App using the 'Activity_KeyPress' Event to react on input from a Bluetooth-Keyboard. So if you press x for example it will start a function.
Everything works fine – except if you press the Enter Key (KeyCode 66) !
By pressing the enter key, a button on the screen will be pressed...
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
Main:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then...
Hi guys,
I have 2 codes,
Code A
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK then
If Info.IsShow then
Info.Close
Return True
End If
End If
Return False
End Sub
Code B
B4X:
Sub Activity_KeyPress (KeyCode As...
hello everyone!
I have a class library that needs to monitor key values in the background
I've been looking for it in the forum for a long time, only the one with activity has been found
But after using the customlayoutdialog cannot receive the key values!
I do not know if there are other...
Is possible to use the back key and go to the previous URL?
B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
'How to back to the previous URL ??
End If
End Sub
Thanks in advance for any tip.
ادامه مطلب...