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

Allow addons to use the context menu #19

Closed
WorldLanguages opened this issue Jul 28, 2020 · 11 comments
Closed

Allow addons to use the context menu #19

WorldLanguages opened this issue Jul 28, 2020 · 11 comments
Labels
scope: addon api Related to the addon.* JS APIs or other ways for addons to provide features type: enhancement New feature for the project

Comments

@WorldLanguages
Copy link
Member

Allow addons to add "right click extension icon" actions. However because of browser limitations, I think only about 5 addons could do this at the same time.
We should also consider allowing addons to add menu items when right clicking inside the Scratch website.

@WorldLanguages WorldLanguages added the type: enhancement New feature for the project label Jul 28, 2020
@jeffalo
Copy link
Contributor

jeffalo commented Aug 7, 2020

perhaps they could go under a drop down kinda thing? (if the amount of items is the limitation your talking about)
image

@WorldLanguages
Copy link
Member Author

I believe there's a limit of 6 or so items per menu, we could probably work around this by making every addon have its own submenu but there would still be a limit of addons that can have a submenu, and so on...

@jeffalo
Copy link
Contributor

jeffalo commented Aug 10, 2020

maybe the user could decide what submenus are there/which addons are in each menu

@WorldLanguages
Copy link
Member Author

Yeah. It will only become a problem if many addons decide to have submenus, tho.

@WorldLanguages WorldLanguages added the scope: addon api Related to the addon.* JS APIs or other ways for addons to provide features label Aug 17, 2020
@TheColaber
Copy link
Member

TheColaber commented Oct 15, 2020

What addons are expected to be in the context menu?

Edit: If it's too many then we can cut it down.

@WorldLanguages
Copy link
Member Author

None, at the moment

@retronbv
Copy link
Contributor

The bitmap copy?

@WorldLanguages
Copy link
Member Author

No, that only works with Ctrl+C. If it did work with the context menu, it still wouldn't use chrome.contextMenus - its actually Scratch's custom context menu.

@retronbv
Copy link
Contributor

Ok

@WorldLanguages
Copy link
Member Author

contextMenus is now in the manifest's permissions array, so as of v1.2 any addon can use chrome.contextMenus from its persistent scripts.

@Explosion-Scratch
Copy link
Contributor

Explosion-Scratch commented Oct 26, 2020 via email

RedGuy12 pushed a commit to RedGuy12/ScratchAddons that referenced this issue Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: addon api Related to the addon.* JS APIs or other ways for addons to provide features type: enhancement New feature for the project
Projects
None yet
Development

No branches or pull requests

5 participants