R rosippc64a Active Member Licensed User Longtime User Aug 15, 2021 #1 Hi All, I use the B4X: Sub AddKeyPressedListener(a As AnchorPane) Dim lr As Reflector lr.Target = a'frmszamlamain.RootPane lr.AddEventFilter("keypressed", "javafx.scene.input.KeyEvent.ANY") End Sub . How can I remove / deactivate the event? thanks Steven
Hi All, I use the B4X: Sub AddKeyPressedListener(a As AnchorPane) Dim lr As Reflector lr.Target = a'frmszamlamain.RootPane lr.AddEventFilter("keypressed", "javafx.scene.input.KeyEvent.ANY") End Sub . How can I remove / deactivate the event? thanks Steven
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2021 #2 (Don't use AnchorPange. Only regular Panes.) It is not simple to remove such filter. You can instead use a flag that ignores this event when it is not needed. Upvote 0
(Don't use AnchorPange. Only regular Panes.) It is not simple to remove such filter. You can instead use a flag that ignores this event when it is not needed.
R rosippc64a Active Member Licensed User Longtime User Aug 15, 2021 #3 Thank you @Erel , changed Anchorpage to Pane and will solve the issue with flag. Upvote 0