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

Bug: pasting via Context menu (right-click menu) changes selection which creates all sorts of issues #6106

Open
gigantedocil opened this issue May 15, 2024 · 4 comments
Labels
copy+paste Relates to Lexical Copy/Paste

Comments

@gigantedocil
Copy link

If you paste via the Context menu the selection underneath the menu changes and all sort of weird issues happen.

Lexical version: 0.15.0 (latest)

Steps To Reproduce

lexical.mov

Link to code example:

n/a

The current behavior

Pasting via the Context menu changes the selection underneath the menu creating all sorts of weird behaviours.

The expected behavior

Pasting via the Context menu should not change the selection underneath the menu.

@ivailop7 ivailop7 added the copy+paste Relates to Lexical Copy/Paste label May 15, 2024
@ivailop7
Copy link
Collaborator

I can repro, need to pin down the commit when this got broken.

@ivailop7
Copy link
Collaborator

@potatowagon any chance this is a byproduct of the ArtificalNode ?

@gigantedocil
Copy link
Author

gigantedocil commented May 15, 2024

@ivailop7, not sure if this is helpful but this is also happening on v0.11.3 (did not confirm but it's likely that it was happening before that as well).

In addition to that, I forgot to mention that I reproduced this via the trackpad which involves pressing two fingers to achieve the right-click that brings up the context menu. I have a feeling that lexical interprets that as 2 clicks and that's what's making the selection change. It's possible that with a regular mouse that has a left and right button, pressing the right button won't have this behaviour.

@ivailop7
Copy link
Collaborator

Thank you for the clarification. There should be no difference between ctrl-v and a context menu paste. Worth investigating for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
copy+paste Relates to Lexical Copy/Paste
Projects
None yet
Development

No branches or pull requests

2 participants