From 866e2bab7292139df3dd93205a8ae3cef9a23857 Mon Sep 17 00:00:00 2001 From: srit Date: Fri, 2 Apr 2010 12:42:15 +0000 Subject: [PATCH] Use Tab key for next and previous image --- vv/vvSlicerManagerCommand.cxx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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)); -- 2.45.1