From: srit Date: Fri, 2 Apr 2010 12:42:15 +0000 (+0000) Subject: Use Tab key for next and previous image X-Git-Tag: v1.2.0~734 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=866e2bab7292139df3dd93205a8ae3cef9a23857;p=clitk.git Use Tab key for next and previous image --- diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 0977586..37d78e6 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -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));