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

use Ctrl + z can delete moveable = false ,deleteable = false block #3486

Closed
beinimaliesi opened this issue Dec 5, 2019 · 4 comments
Closed
Labels
issue: bug Describes why the code or behaviour is wrong

Comments

@beinimaliesi
Copy link

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Stack Traces

Replace with error stack trace.

Additional context

@beinimaliesi beinimaliesi added issue: triage Issues awaiting triage by a Blockly team member issue: bug Describes why the code or behaviour is wrong labels Dec 5, 2019
@RoboErikG
Copy link
Contributor

@tuxianchao please provide repro steps. There's not normally a way to create non-movable/deletable blocks in a way that they're added to the undo stack.

@RoboErikG
Copy link
Contributor

Unfortunately, we'll need repro steps to understand the issue you're seeing. Closing for now but will re-open if we get more detail.

@jusvit
Copy link

jusvit commented Feb 24, 2021

Unfortunately, we'll need repro steps to understand the issue you're seeing. Closing for now but will re-open if we get more detail.

When you load up a workspace (e.g from a database) with multiple blocks but the action list is empty. If you press ctrl z, it'll undo all the loaded blocks even if they're not deletable. Is there a way around this?

@BeksOmega
Copy link
Collaborator

When you load up a workspace (e.g from a database) with multiple blocks but the action list is empty. If you press ctrl z, it'll undo all the loaded blocks even if they're not deletable. Is there a way around this?

@justinvvitale you should be able to call Blockly.Events.disable() before loading and Blockly.Events.enable() after loading so that no events are fired. If you have any further questions I (and others) are happy to help, but please ask on the developer forums so we can keep the github clean :D Hope that helps!

@moniika moniika removed the issue: triage Issues awaiting triage by a Blockly team member label Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Describes why the code or behaviour is wrong
Projects
None yet
Development

No branches or pull requests

5 participants