MCPcopy Create free account
hub / github.com/Kitware/VTK / OnKeyRelease

Method OnKeyRelease

Interaction/Style/vtkInteractorStyleUser.cxx:98–109  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

96
97//------------------------------------------------------------------------------
98void vtkInteractorStyleUser::OnKeyRelease()
99{
100 if (this->HasObserver(vtkCommand::KeyReleaseEvent))
101 {
102 this->ShiftKey = this->Interactor->GetShiftKey();
103 this->CtrlKey = this->Interactor->GetControlKey();
104 this->KeySym = this->Interactor->GetKeySym();
105 this->Char = this->Interactor->GetKeyCode();
106
107 this->InvokeEvent(vtkCommand::KeyReleaseEvent, nullptr);
108 }
109}
110
111//------------------------------------------------------------------------------
112void vtkInteractorStyleUser::OnChar()

Callers 1

ProcessEventsMethod · 0.45

Calls 4

HasObserverMethod · 0.80
GetKeySymMethod · 0.80
GetKeyCodeMethod · 0.80
InvokeEventMethod · 0.80

Tested by

no test coverage detected