]> Creatis software - clitk.git/commitdiff
Use Tab key for next and previous image
authorsrit <srit>
Fri, 2 Apr 2010 12:42:15 +0000 (12:42 +0000)
committersrit <srit>
Fri, 2 Apr 2010 12:42:15 +0000 (12:42 +0000)
vv/vvSlicerManagerCommand.cxx

index 0977586210ec76100435824927e7d44d1e5a772d..37d78e6a066090bdecfdeefbde1c08d9cf16346c 100644 (file)
@@ -97,16 +97,14 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
             if (event == vtkCommand::KeyPressEvent)
             {
                 std::string KeyPress = isi->GetInteractor()->GetKeySym();
-              if (KeyPress == "a")
-              {
-                  this->SM->PrevImage(VisibleInWindow);
-                  return;
-              }
-              if (KeyPress == "q")
-              {
-                  this->SM->NextImage(VisibleInWindow);
-                  return;
-              }
+                if (KeyPress == "Tab")
+                {
+                    if(isi->GetInteractor()->GetShiftKey())
+                        this->SM->PrevImage(VisibleInWindow);
+                    else
+                        this->SM->NextImage(VisibleInWindow);
+                    return;
+                }
                 if (KeyPress == "f" || KeyPress == "F")
                 {
                     FlyToPosition(isi->GetInteractor(),this->SM->GetSlicer(VisibleInWindow));