New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
Aspx.cs |
Aspx |
var Commands = new Dictionary<string, object>
{
{
"stopEditing",
new Command
{
CanExecute = "canStopEdit",
Execute = “stopEdit”,
Gesture = new Gesture {Key = Keys.Enter }
}
},
};
DiagramContent.CommandManager.Commands = Commands; |
<script>
function canStopEdit() {
if (args.model.selectedItems.children.length > 0) {
return true;
}
}
function stopEdit() {
var diagram = $("#diagram").ejDiagram("instance");
//label editing stop once we press an enter key diagram.model.commandManager.commands["endEdit"].execute(args);
}
</script> |