Undo /Redo

377 views
Skip to first unread message

Yukti Mehta

unread,
Jul 5, 2016, 1:32:18 AM7/5/16
to Blockly
How can I undo/redo the blocks ? Please help.

Regards
Yukti Mehta

Yukti Mehta

unread,
Jul 5, 2016, 1:32:43 AM7/5/16
to Blockly

Neil Fraser

unread,
Jul 5, 2016, 2:46:56 AM7/5/16
to blo...@googlegroups.com
On 4 July 2016 at 22:32, Yukti Mehta <yukti....@gmail.com> wrote:
> How can I undo/redo the blocks ? Please help.

As a user: Control-Z and Shift-Control-Z
As a developer: workspace.undo(false) and workspace.undo(true)

--
Neil Fraser
https://neil.fraser.name

yukti....@gmail.com

unread,
Jul 5, 2016, 3:25:56 AM7/5/16
to blo...@googlegroups.com
Thanks for the response. But I wanted to have a button on my application for such activities that is why cntrl Z is not of use.

Thanks Much
Yukti Mehta
> --
> You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/1PpVn4leYIE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Stefan J

unread,
Jul 5, 2016, 3:59:42 AM7/5/16
to Blockly
workspace.undo(false);

and true for redo.

Stefan J

unread,
Jul 5, 2016, 4:01:16 AM7/5/16
to Blockly
My bad, I didn't see that Neil already posted this :/

Neil Fraser

unread,
Jul 5, 2016, 4:13:44 AM7/5/16
to blo...@googlegroups.com
On 5 July 2016 at 00:25, <yukti....@gmail.com> wrote:
> Thanks for the response. But I wanted to have a button on my application for such activities that is why cntrl Z is not of use.

Right, your undo button would call workspace.undo(false) and your redo
button would call workspace.undo(true).

yukti....@gmail.com

unread,
Jul 5, 2016, 5:16:40 AM7/5/16
to blo...@googlegroups.com
Thank You so much for the response. It worked :D

Thanks Much
Yukti Mehta

Yukti Mehta

unread,
Aug 11, 2016, 1:12:43 AM8/11/16
to Blockly
The undo/redo thing is working well in Google Chrome but it is not working in Internet Explorer (IE). Please help.


On Tuesday, July 5, 2016 at 11:02:18 AM UTC+5:30, Yukti Mehta wrote:

Wolfgang Koehler

unread,
Aug 11, 2016, 7:31:51 AM8/11/16
to Blockly
Working in IE10 for me.

Yukti Mehta

unread,
Aug 11, 2016, 7:34:43 AM8/11/16
to blo...@googlegroups.com
Okay then I will fix this thing. And one more thing background image is not getting shown in IE10, however it is getting displayed in Chrome. Please help.

Thanks Much
Yukti Mehta

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/1PpVn4leYIE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages