private void PerformKeyboardShortcuts()
{
if (InputManager.Keyboard.KeyPushedConsideringInputReceiver(Keys.Delete))
{
#region Delete Nodes
if (mCurrentNodes.Count != 0)
{
for (int i = 0; i < mCurrentNodes.Count; i++)
{
EditorData.NodeNetwork.Remove(mCurrentNodes[i]);
}
EditorData.NodeNetwork.UpdateShapes();
SelectNode(null);
}
#endregion
#region Delete Links
if (mCurrentLink != null)
{
PositionedNode firstNode = mCurrentLinkParent;
PositionedNode otherNode = mCurrentLink.NodeLinkingTo;
firstNode.BreakLinkBetween(otherNode);
EditorData.NodeNetwork.UpdateShapes();
SelectLink(null, null);
}
#endregion
}
}