mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Ensure that if a procedure call exists, so does its definition.
Specifically, if a call is copied, then the def is deleted, then the call is pasted, the def should be created.
This commit is contained in:
@@ -277,7 +277,9 @@ Blockly.onKeyDown_ = function(e) {
|
||||
if (e.keyCode == 86) {
|
||||
// 'v' for paste.
|
||||
if (Blockly.clipboardXml_) {
|
||||
Blockly.Events.setGroup(true);
|
||||
Blockly.clipboardSource_.paste(Blockly.clipboardXml_);
|
||||
Blockly.Events.setGroup(false);
|
||||
}
|
||||
} else if (e.keyCode == 90) {
|
||||
// 'z' for undo 'Z' is for redo.
|
||||
|
||||
Reference in New Issue
Block a user