Skip to content

Implement Tab.createEditorContextMenu - #3429

Merged
WorldLanguages merged 12 commits into
ScratchAddons:masterfrom
apple502j:ctx-menu-api
Sep 11, 2021
Merged

Implement Tab.createEditorContextMenu#3429
WorldLanguages merged 12 commits into
ScratchAddons:masterfrom
apple502j:ctx-menu-api

Conversation

@apple502j

@apple502j apple502j commented Sep 4, 2021

Copy link
Copy Markdown
Member

Closes #3406
Closes #3418
Resolves #3439
Also adds new addon "Move costume to top or bottom" (move-to-top-bottom) - a testing addon but this can be kept.

@apple502j apple502j added scope: addon api Related to the addon.* JS APIs or other ways for addons to provide features priority: 3 Medium priority. Includes bugs and useful features scope: addon Related to one or multiple addons labels Sep 4, 2021
Comment thread addon-api/content-script/Trap.js
@WorldLanguages

WorldLanguages commented Sep 5, 2021

Copy link
Copy Markdown
Member

TODOs:

  • Single contextmenu event for all addons
  • Make sure this is compatible with right clicking sprite, costume and sound folders made by "folders" addon.

@apple502j

Copy link
Copy Markdown
Member Author

@WorldLanguages Requesting re-review; also @GarboMuffin for folders change and compat
After that I'll push the big boring changes (removing stuff from DevTools)

Not sure if I want to mess with folders addon in this PR. Maybe as a future refactoring PR.

@GarboMuffin

Copy link
Copy Markdown
Member

Folders change looks okay

Comment thread addon-api/content-script/Tab.js Outdated
Comment thread addons/move-to-top-bottom/userscript.js Outdated
@WorldLanguages
WorldLanguages merged commit 4248dc3 into ScratchAddons:master Sep 11, 2021
@mxmou

mxmou commented Sep 11, 2021

Copy link
Copy Markdown
Member

Shouldn't most references to "context menu" in the code, including the function name, actually be called "context menu item"?

@WorldLanguages

Copy link
Copy Markdown
Member

Yeah, it is this way to be consistent with createBlockContextMenu which has existed for a few months

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: 3 Medium priority. Includes bugs and useful features scope: addon api Related to the addon.* JS APIs or other ways for addons to provide features scope: addon Related to one or multiple addons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

folders addon's implementation of reordering has off-by-one error

5 participants