Hi Jim,
Please use command manager to achieve your requirement. Please refer to the code example and sample below.
Code example:
Command paste = new Command()
{
Execute = "executepaste",
CanExecute = "canexecutepaste",
Gesture = new Gesture() { Key = Keys.V, KeyModifiers = KeyModifiers.Control }
};
DiagramContent.CommandManager.Commands.Add("paste", paste);
function executepaste(args) {
var diagram = $("#DiagramContent").ejDiagram("instance");
diagram.paste();
//you can hide the busy screen
}
function canexecutepaste(args) {
if (args.model.selectedItems.children.length) {
return true;
}
}
Regards,
Shyam G