Skip to content

Comments

Fix web clipboard events in SelectionContainer (#2700)#2701

Merged
siarb merged 1 commit intorelease/1.10from
ok/cherry-pick-CMP-9508-to-1.10
Jan 20, 2026
Merged

Fix web clipboard events in SelectionContainer (#2700)#2701
siarb merged 1 commit intorelease/1.10from
ok/cherry-pick-CMP-9508-to-1.10

Conversation

@eymar
Copy link
Member

@eymar eymar commented Jan 20, 2026

Cherry-pick from #2700

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

Testing

This should be tested by QA

Release Notes

Fixes - Web

  • Fix Ctrl/Cmd + C (copy) event handling for the selected text wrapped in SelectionContainer

@eymar eymar requested a review from sekater January 20, 2026 12:41
@sekater sekater requested a review from siarb January 20, 2026 12:48
Some browsers do not dispatch clipboard events to the `<canvas>` element
- they don't expect that a canvas would have anything to copy.

Introduce the `clipTarget` textarea element to receive clipboard events
for better browser compatibility.

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

## Testing
This should be tested by QA

## Release Notes
### Fixes - Web
- Fix `Ctrl/Cmd + C` (copy) event handling for the selected text wrapped
in SelectionContainer
@eymar eymar force-pushed the ok/cherry-pick-CMP-9508-to-1.10 branch from 6166e59 to a754971 Compare January 20, 2026 12:59
@siarb siarb merged commit 2c54526 into release/1.10 Jan 20, 2026
25 of 26 checks passed
@siarb siarb deleted the ok/cherry-pick-CMP-9508-to-1.10 branch January 20, 2026 13:35
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.

2 participants