JDK-8087845 : TextArea.addEventHandler(... does not work for events: MouseEvent.MOUSE_DRAGGED, MouseEvent.MOUSE_RELEASED, MouseEvent.MOUSE_PRESSED
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2013-08-01
  • Updated: 2022-04-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
run application attached:
there is a scene with one TextArea and one Button.
Event handlers attached to both TextArea and Button.

handlers does not work for TextArea.
(same time, it works properly for Button)


Comments
Reducing to minor and not targeting to a release because I believe the behavior being observed is expected, but I'm not ready to close it out entirely until further analysis has been made.
05-08-2013

This may well be expected behavior on the TextArea. The general rule is, if a UI control uses an event, it should consume the event, which would prevent additional event handlers from receiving those events. If you use a filter instead of a handler you should be seeing all these events.
05-08-2013

Affected tests: SceneGraphAutomated/test/scenegraph/functional/controls/events/TextAreaEventsTest/onMouseDraged SceneGraphAutomated/test/scenegraph/functional/controls/events/TextAreaEventsTest/onMousePressed SceneGraphAutomated/test/scenegraph/functional/controls/events/TextAreaEventsTest/onMouseReleased
01-08-2013