Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CfW: clipboard events do not work on Windows with 1.6.10-beta02 #4728

Closed
eymar opened this issue Apr 29, 2024 · 0 comments · Fixed by JetBrains/compose-multiplatform-core#1329
Assignees
Labels
bug Something isn't working input Touch, mouse, keyboard input related reproduced text web

Comments

@eymar
Copy link
Collaborator

eymar commented Apr 29, 2024

Reported in slack: https://kotlinlang.slack.com/archives/C01F2HV7868/p1714050651787849

Describe the bug
Ctrl + C/V/X simply prints a character (C,V or X) into the TextField. It works as expected on macos with Cmd + C/V/X

Affected platforms

  • Web (K/Wasm) - Canvas based API
  • Web (K/JS) - Canvas based API

Versions

  • Kotlin version*: Any
  • Compose Multiplatform version*: 1.6.10-beta02

Expected behavior
Ctrl + C/V/X should be handled as clipboard events.

@eymar eymar added bug Something isn't working input Touch, mouse, keyboard input related text web reproduced labels Apr 29, 2024
@eymar eymar self-assigned this Apr 29, 2024
eymar added a commit to JetBrains/compose-multiplatform-core that referenced this issue Apr 29, 2024
**Solution:** When Ctrl is pressed, isTypedEvent should return false

Fixes JetBrains/compose-multiplatform#4728

## Testing
Added two more unit tests.

## Release Notes
### Fixes - Web

- _(prerelease fix)_ Fix Browser Clipboard Events and other shortcuts
handling on Windows
eymar added a commit to JetBrains/compose-multiplatform-core that referenced this issue May 1, 2024
**Solution:** When Ctrl is pressed, isTypedEvent should return false

Fixes JetBrains/compose-multiplatform#4728

## Testing
Added two more unit tests.

## Release Notes
### Fixes - Web

- _(prerelease fix)_ Fix Browser Clipboard Events and other shortcuts
handling on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input Touch, mouse, keyboard input related reproduced text web
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant