-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
fix: Allow copy of excalidraw elements only when inside excalidraw #3206
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/excalidraw/excalidraw/2qHwyH64UkWhLNAj5jZjVfxCQKLP |
I suggest we start with a partial fix (but current solution in this PR is partial anyway), and simply prevent copy if there's an active selection outside the component. Something like:
This PR will help in this (if we end up merging it) #3207 which should ensure that clicking on canvas deselects external selection. Btw, I was wrong and we do handle copy via the keydown manager. |
Yes but that also uses |
Yea, I suppose. But current solution has too many false negatives. E.g. you click on any excalidraw UI, or you click inside wysiwyg and them confirm/cancel via keyboard. |
So any text inside modal was also not getting copied which is also fixed |
|
🎉 |
fixes #3205
Try here