-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Site Editor: Enable copy/cut shortcut #45752
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
Conversation
|
Size Change: +12 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR is a good fix and should be merged after a rebase 👍 I did not found issues on my tests.
Thank you for your review, @jorgefilipecosta! |
On Firefox on Windows 10, |
Closes #43709
Related to #43352
What?
This PR activates copy/cut shortcut in the site editor.
Why?
When I was looking into the shortcut issue in Windows with #43352, I noticed that copy/cut shortcut is not available only for the site editor:
I was unable to find if this shortcut was intentionally opted out, but I think shortcuts should be as uniform as possible in all editor instances.
How?
Added the
useClipboardHandler
hook to the site editor ref. Please advise me if you have any concerns about adding this hook.Testing Instructions
Confirm that the copy and cut shortcuts work in all of the following locations. It is also a good idea to check the paste shortcut at the same time.
Screenshots or screencast
f01b8b50397bf19e17bb556f46ba1ba6.mp4