Salome HOME
Fixing a bug : Salome GUI style needs addLibraryPath() method to be called
[modules/gui.git] / src / SVTK / SVTK_RenderWindowInteractor.cxx
index a3ecadfc8dc114dd858220b408affb7eb40b7bb4..1b32fc424360a69d8c949849c097f79b80c0edc9 100644 (file)
@@ -436,7 +436,7 @@ SVTK_RenderWindowInteractor
                                      (event->state() & ShiftButton), 
                                      event->x(), event->y() ) ;
 
-  if(myInteractorStyle->GetState() == VTK_INTERACTOR_STYLE_CAMERA_NONE){
+  if(myInteractorStyle->GetState() == VTK_INTERACTOR_STYLE_CAMERA_NONE && !( event->state() & KeyButtonMask )){
     QContextMenuEvent aEvent( QContextMenuEvent::Mouse,
                               event->pos(), event->globalPos(),
                               event->state() );