--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Rachel,I think Cesar wants to delete a block programatically.Cheers,Juan p.
2018-07-26 16:06 GMT-04:00 'Rachel Fenichel' via Blockly <blo...@googlegroups.com>:
You shouldn't need to do anything. Blockly handles the backspace and delete keys, acting on the selected block.Rachel
On Thursday, July 26, 2018 at 10:11:53 AM UTC-7, César Ivan Delgado Silva wrote:I want delete the selected block pressing the delete button... how can i do it?
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| if (Blockly.selected && !Blockly.selected.workspace.isFlyout) { |
| Blockly.Events.setGroup(true); |
| Blockly.hideChaff(); |
| Blockly.selected.dispose(/* heal */ true, true); |
| Blockly.Events.setGroup(false); |
| } That's what happens when the user hits delete with a block selected. |
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/54969a4e-cebf-4df3-9b0c-e97ef3ad4c45o%40googlegroups.com.
var block = workspace.getBlockById(e.blockId);
block.dispose();