Skip to content

Conversation

@adrian5632
Copy link

Description:

The clickable modifier triggers onClick on keyup events (for Enter/Space), but NativeInputEventsProcessor only processed keydown events. This caused clickable
elements to show ripple effect on Enter press but never invoke the onClick callback.

Fix: Process keyup events for non-character keys (like Enter, Space, arrows) in NativeInputEventsProcessor.

Fixes https://youtrack.jetbrains.com/issue/CMP-9386

Testing

Added testEnterKeyEventProcessing test that verifies both keydown and keyup events are sent to Compose for Enter key.

  • This should be tested by QA

Release Notes

Fixes - Web

…P-9386)

The clickable modifier triggers onClick on keyup events (for Enter/Space),
but NativeInputEventsProcessor only processed keydown events. This caused
clickable elements to show ripple effect on Enter press but never invoke
the onClick callback.

Fix: Process keyup events for non-character keys (like Enter, Space, arrows)
in NativeInputEventsProcessor, allowing them to reach Compose and trigger
clickable's keyup-based onClick logic.
@google-cla
Copy link

google-cla bot commented Dec 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

1 participant