]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug12339 TC: It is impossible to enter a negative value to change the segment...
authorapo <apo@opencascade.com>
Wed, 3 May 2006 15:20:53 +0000 (15:20 +0000)
committerapo <apo@opencascade.com>
Wed, 3 May 2006 15:20:53 +0000 (15:20 +0000)
src/SUIT/SUIT_Accel.cxx

index 63e8d11164491b8d331dae117728e9f631645422..a82219550ac9a57a6ff497b749b3d02e5fea793e 100644 (file)
@@ -115,7 +115,7 @@ bool SUIT_Accel::eventFilter( QObject *obj, QEvent *event )
   const int key = getAccelKey( event );
   if ( key ) {
     SUIT_ViewWindow* vw = ::getParentViewWindow( obj ); 
-    if ( vw ) {
+    if ( vw && vw->hasFocus() ) {
       QString type = vw->getViewManager()->getViewModel()->getType();
       if ( myMap.contains( type ) ) {
        IdActionMap idActionMap = myMap[type];