Skip to content

Component: call processEvent() for enabled action events - #79

Merged
guillerodriguez merged 1 commit into
masterfrom
fix/component-dispatch-action-events
Nov 3, 2026
Merged

guillerodriguez merged 1 commit into
masterfrom
fix/component-dispatch-action-events

Conversation

@guillerodriguez

Copy link
Copy Markdown
Contributor

Component.dispatchEvent() should call processEvent() for 1.1-style events which have been enabled for the Component. However, Component.eventTypeEnabled() does not handle action events and always returns false for them, so processEvent() is never called even after enableEvents(AWTEvent.ACTION_EVENT_MASK). This breaks lightweight components that generate action events themselves.

Fix by checking for ACTION_PERFORMED events in eventTypeEnabled().

Fixes #4 (BZ#70663)

Component.dispatchEvent() should call processEvent() for 1.1-style
events which have been enabled for the Component. However,
Component.eventTypeEnabled() does not handle action events and always
returns false for them, so processEvent() is never called even after
enableEvents(AWTEvent.ACTION_EVENT_MASK). This breaks lightweight
components that generate action events themselves.

Fix by checking for ACTION_PERFORMED events in eventTypeEnabled().

Fixes #4 (BZ#70663)

Signed-off-by: Guillermo Rodríguez <grodriguez@ingelabs.com>
@guillerodriguez
guillerodriguez merged commit 7c9e6f0 into master Nov 3, 2026
3 checks passed
@guillerodriguez
guillerodriguez deleted the fix/component-dispatch-action-events branch November 3, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Component.dispatchEvent ignores ActionEvents

2 participants