}
//----------------------------------------------------------------------------
-void
+bool
VVTK_ViewWindow
::action( const int accelAction )
{
- if(myMainWindow1->hasFocus())
- myMainWindow1->action(accelAction);
- if(myMainWindow2->hasFocus())
- myMainWindow2->action(accelAction);
+ if ( myMainWindow1->hasFocus() )
+ myMainWindow1->action( accelAction );
+ else if ( myMainWindow2->hasFocus() )
+ myMainWindow2->action( accelAction );
+ else
+ return false;
+ return true;
}
//----------------------------------------------------------------------------