------------------------------------------------------------------------------
| 798 | |
| 799 | //------------------------------------------------------------------------------ |
| 800 | int vtkWin32RenderWindowInteractor::OnKeyDown(HWND, UINT vCode, UINT nRepCnt, UINT nFlags) |
| 801 | { |
| 802 | if (!this->Enabled) |
| 803 | { |
| 804 | return 0; |
| 805 | } |
| 806 | int ctrl, shift, alt; |
| 807 | char keyCode; |
| 808 | const char* keySym; |
| 809 | ::RecoverKeyEventInformation(vCode, nFlags, ctrl, shift, alt, keyCode, keySym); |
| 810 | this->SetKeyEventInformation(ctrl, shift, keyCode, nRepCnt, keySym); |
| 811 | this->SetAltKey(alt); |
| 812 | return this->InvokeEvent(vtkCommand::KeyPressEvent, nullptr); |
| 813 | } |
| 814 | |
| 815 | //------------------------------------------------------------------------------ |
| 816 | int vtkWin32RenderWindowInteractor::OnKeyUp(HWND, UINT vCode, UINT nRepCnt, UINT nFlags) |
no test coverage detected