//-------------------------------------------------------------------------------------------------- public bool KeyPressed(Key key) { if (CurrentTool != null) { if (CurrentTool.OnKeyPressed(key)) { return(true); } } if (_ToolActions.Any()) { foreach (var toolAction in _ToolActions) { if (toolAction.OnKeyPressed(key)) { // Handled by tool action //Workspace.V3dViewer.Redraw(); return(true); } } } return(false); }