From: Romulo Pinho Date: Thu, 18 Oct 2012 07:37:37 +0000 (+0200) Subject: VV panning: middlebutton = left button + shift X-Git-Tag: v1.4.0~288^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9ef14d23629627c4227c956b336373935a3ded91;p=clitk.git VV panning: middlebutton = left button + shift - a change made specially for mac owners and their mice-without-middle-button issues... ;-) --- diff --git a/vv/vvInteractorStyleNavigator.cxx b/vv/vvInteractorStyleNavigator.cxx index 712e069..ac37a8f 100644 --- a/vv/vvInteractorStyleNavigator.cxx +++ b/vv/vvInteractorStyleNavigator.cxx @@ -249,7 +249,10 @@ void vvInteractorStyleNavigator::OnLeftButtonDown() // Redefine this button to handle pick this->GrabFocus(this->EventCallbackCommand); - if (!this->Interactor->GetShiftKey() && !this->Interactor->GetControlKey()) { + if (this->Interactor->GetShiftKey()) { + this->OnMiddleButtonDown(); + } + else if (!this->Interactor->GetControlKey()) { this->StartPick(); } @@ -271,6 +274,9 @@ void vvInteractorStyleNavigator::OnLeftButtonUp() this->ReleaseFocus(); } break; + case VTKIS_PAN: + this->OnMiddleButtonUp(); + break; } // Call parent to handle all other states and perform additional work