bwildman14 / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Inconsistency when duplicating blocks via keyboard vs context menu #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Duplicating a block using its context menu entry keeps the original block 
being selected. 
2. If duplicating a block with ctrl-c and ctrl-v the new block is the one that 
is selected.

What is the expected output? What do you see instead?

I think it will be better to select the new block because under normal 
conditions this one is the block that must be moved next.

What browser are you using?

Firefox, Chrome

Please provide any additional information below.

Probably 'newBlock.select();' at the end of 'Blockly.Block.duplicate_' will 
cure the problem.

Original issue reported on code.google.com by spesyste...@gmail.com on 4 Feb 2014 at 1:48

GoogleCodeExporter commented 9 years ago
Good bug, good solution.  Checked in for r1644.  Thanks!

Original comment by neil.fra...@gmail.com on 6 Mar 2014 at 4:54