-
Notifications
You must be signed in to change notification settings - Fork 384
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
Explore right-click open menu #2785
Comments
AC1 / AC2: While there was a special We might be able to do that by using the Upon right click, we would then use the Note: Considerations need to be put into accessibility, making sure that keyboard navigation and focus handling works as expected. It would be good if we could try a quick proof-of-concept of this, to see whether it actually works. I haven't found any upstream issues about a similar feature. Given that right-click on the web is mainly found in RIAs like Google Slides or Google Docs, and not so much in a CMS, it's probably unlikely to be implemented there. Also, unlike the Stories editor the block toolbar with its options menu can be directly attached to a block in Gutenberg, reducing the need for having the same things accessible via right click. AC3: I think in addition to copy and paste it should also handle cut. Looks like programmatically adding a block (or data in general) to the clipboard is doable. Gutenberg is doing it here: Pasting would be handled by the To make the pasting work via the context menu, I feel like we'd need to copy most of that component's logic. |
Should this be available at any times or only for the selected block(s)? Also, should it work for Pages as well or just inner blocks? Thoughts? |
One use case for right click: Copy a block on page A, then go over to page B, right click anywhere to open the context menu and click on the "Paste" menu item. For that, it would need to work at any times and not only for selected blocks, and also work for pages. Unless I'm missing something. |
Yep, rephrasing the question:
|
Oh, I see! Copying pages and pasting them between other pages could be a bit difficult to do as a user. Where would you click on to paste? Maybe a better solution there is to duplicate a page and then reorder pages. |
Hmm, I guess they could click on the small area between the Pages for pasting? Not sure :) That's just a thought, if it seems like overkill then we could ignore it for the sake of this issue, I don't have very strong feelings about it. 🤷♀ |
What if the user would right click on the page for pasting and then gets to options "Insert before" and "Insert after"? |
That could be a good idea. So in case of pasting a Page it would offer that choice. |
Moving to the review column so we can summarize this in a new issue and estimate it properly. |
@swissspidy / @miina is it possible to validate the ability to delete a block within the right-click action? |
@MackenzieHartung I think this is covered by AC1:
The 3-dot menu already includes an option to remove the block: |
Awesome! Thanks @swissspidy! |
Added two new issues as a result of this: |
As a user I want to be able to use the right-click option to expose the 3-dot menu, including copy/paste options.
AC1: Explore right-click open menu as an option to display the 3-dot menu to users
AC2: (Dependent on outcome of AC1...if possible) create an issue for enabling right-click
AC3: (Dependent on outcome of AC1...if possible) create an issue for copy/paste
Note: if not possible, we need to revisit
The text was updated successfully, but these errors were encountered: