B4J Code Snippet KeyBoard Event,detect CTRL+X or etc... - behnam_tr    Jul 20, 2021   (3 reactions) ("Main_KeyPressed", "javafx.scene.input.KeyEvent.KEY_PRESSED")
r.AddEventHandler("Main_KeyPressed", "javafx.scene.input.KeyEvent.KEY_RELEASED")
End Sub
Private... B4J Question [B4XPages] Key event - KEY_PRESSED and KEY_RELEASED - Elric    Dec 30, 2021 Hi,
I'd like to manage the key event in a B4XPage but I don't know how.
It seems that forum return only result for B4A or for B4J using form.
Any hint?
Thanks!... B4J Question ScrollPane kill/consume KeyEvents for it.. - Magma    Feb 13, 2024 ("Drawpane_KeyPressed", "javafx.scene.input.KeyEvent.ANY")
...
Sub Drawpane_KeyPressed_Event(e As Event)
Dim KE As Reflector
KE.Target = e
e.Consume 'kill it fast... B4J Question Trap key_event F8 and F10 in an B4J program - Ganiadi (first post)    Oct 8, 2021 Hi Please Help
When i use B4xPage, i can not set the MainForm on gvh.AddKeyListener("keylistener", MainForm)
Can anybody know how to set it
Tks... B4J Question KeyPress Events - raphipps2002    Oct 28, 2015 Is there any mechanism for monitoring keypress events to prohibit certain characters being type?... B4J Question Capture KEY_PRESSED event - yo3ggx (first post)    Oct 14, 2021   (3 reactions) Answered myself. I replaced AddEventHandler with AddEventFilter and now everything works as expected.
New rutine now named KeyDown_Filter instead of KeyDown_Event... B4J Question Button btn_KeyPressed event triggered twice in a row - B4JExplorer (first post)    Mar 10, 2019 Use KEY_PRESSED instead, KEY_TYPED can only handle normal keys that can be printed.
Yep, that did it, we're all set, thanks Daestrum.... B4J Code Snippet B4XDialog - Add keyboard handling - Erel    Apr 7, 2019   (8 reactions) This code allows the user to close the dialog with 'escape' or one of the following keys: Y, N or C. It depends on agraham's jReflection library. Sub AddKeyPressedListener Dim r As Reflector r.Target = MainForm.RootPane r.AddEventHandler("keypressed", "javafx.scene.input.KeyEvent.KEY_PRESSED") End Sub Sub KeyPressed_Event (e As Event) If Dialog...(xui.DialogResponse_Negative) End If End If End Sub You need to call AddKeyPressedListener... B4J Question B4J JavaObject Oracle KeyPressed/KeyReleased Event Sub? - Roycefer (first post)    Aug 16, 2015   (1 reaction) If you want to trap keyboard input events before they are propagated to their "owner" application, take a look at the jNativeHookB4J library. However, I think this is a kludgey solution to your problem.
I think you should just copy your pattern from the Decimaltxtfld example. Implement... B4J Question How to invoke the event for Sender ? - peacemaker    Mar 27, 2026 Buttons are created dynamically, the single shared event. And key pressing are caught.
Private Sub butVar_Click
Dim b As B4XView = Sender
...
Private Sub KeyPressed_Event(e As Event)
Dim KE As Reflector
KE.Target = e 'e is a KeyEvent instance
Dim KeyCode As String = KE... Page: 1   2   3   4   5   6   7   |