private void treeStructure_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Delete: _controller.DeleteSelectedStructureItems(); break; case Keys.Insert: _controller.AddStructureItemToFocused(); break; } }
private void MetadataStructureTree_OnKeyDown(object sender, KeyEventArgs e) { switch (e.Key) { case Key.Delete: _controller.DeleteSelectedStructureItems(); break; case Key.Insert: _controller.AddStructureItemToFocused(); break; } }