Deleting a hat block incorrectly implies deleting a single block
See original GitHub issueExpected Behavior
When you right click on a block and you select the option Delete block
, it should delete one block.
Actual Behavior
Right clicking on a hat block uses the message Delete block
but it deletes the whole stack. Either the message should indicate that more blocks will be deleted, or only delete the hat block.
Note clicking on the forever when it contains a block the context menu says Delete 2 blocks
.
Operating System and Browser
MacOS Chrome
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Repairing Vintage Hat Blocks - Judith M Millinery Supply House
If wanting a nicer looking block, lightly sand to remove old stains and varnish. You can then apply a clear restorative finish if...
Read more >BLOCKING | NancyBatesDesigns
Every one of my patterns ends with the instruction to "block as desired". ... Step 4: Gently remove hat from water being careful...
Read more >Unable to Delete a Project or Namespace in OCP
This usually happens because something is preventing a resource from being deleted, causing namespace deletion to be stuck.
Read more >To Remove a Block Definition | AutoCAD 2020
Click Application button Drawing Utilities Purge. · If necessary, click Purgeable Items. · To purge blocks, use one of the following methods: ·...
Read more >How one programmer broke the internet by deleting a tiny ...
How one programmer broke the internet by deleting a tiny piece of code ... with Stratton threatening legal action: “We don't mean to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My understanding is that “delete” in the context menu is designed so that you don’t have to perform a three step process to delete a single block:
With a hat block, you can just drag the entire script into the trash if that’s what you want to do. If you, however, want to swap the event which triggers the action (e.g. arrow keys vs green flag), there should be a quick way to do that.
Not too sure, but this may be a duplicate of #245. https://github.com/LLK/scratch-blocks/issues/245#issuecomment-376341121 describes a potential way to look into fixing this. More importantly, the new PR #1814 probably fixes this issue too.