------------------------------------------------------------------------------
| 433 | |
| 434 | //------------------------------------------------------------------------------ |
| 435 | void vtkContextInteractorStyle::OnKeyPress() |
| 436 | { |
| 437 | this->BeginProcessingEvent(); |
| 438 | vtkContextKeyEvent event; |
| 439 | vtkVector2i position( |
| 440 | this->Interactor->GetEventPosition()[0], this->Interactor->GetEventPosition()[1]); |
| 441 | event.SetInteractor(this->Interactor); |
| 442 | event.SetPosition(position); |
| 443 | bool keepEvent = false; |
| 444 | if (this->Scene) |
| 445 | { |
| 446 | keepEvent = this->Scene->KeyPressEvent(event); |
| 447 | } |
| 448 | if (!keepEvent) |
| 449 | { |
| 450 | this->Superclass::OnKeyPress(); |
| 451 | } |
| 452 | this->EndProcessingEvent(); |
| 453 | } |
| 454 | |
| 455 | //------------------------------------------------------------------------------ |
| 456 | void vtkContextInteractorStyle::OnKeyRelease() |
nothing calls this directly
no test coverage detected