Skip to content

Conversation

kof
Copy link
Member

@kof kof commented Feb 11, 2025

Closes #4856

Description

Current logic broke in Chrome 133

  1. Select instance in navigator
  2. Copy
  3. Paste
  4. Should still allow selecting text and copying it

Steps for reproduction

  1. click button
  2. expect xyz

Code Review

  • hi @kof, I need you to do
    • conceptual review (architecture, feature-correctness)
    • detailed review (read every line)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 0000)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env file

@istarkov
Copy link
Member

On Chrome 131
On app.webstudio.is I can select text in editable
image

In current PR this is impossible

@istarkov
Copy link
Member

istarkov commented Feb 12, 2025

Fixed
(space also didn't work)

Also made text selection a little bit easier disabling drag on editing items

@TrySound TrySound merged commit 4855ffd into main Feb 12, 2025
17 checks passed
@TrySound TrySound deleted the fix-copy branch February 12, 2025 07:43
TrySound pushed a commit that referenced this pull request Feb 12, 2025
Closes #4856

## Description

Current logic broke in Chrome 133

1. Select instance in navigator
2. Copy
3. Paste
4. Should still allow selecting text and copying it

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file

---------

Co-authored-by: istarkov <[email protected]>
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.

Copy stopped working in latest chromium 133
3 participants