]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
bug in key event fixed: send a key code when invoking key events.
authorasv <asv@opencascade.com>
Fri, 26 Aug 2005 07:07:05 +0000 (07:07 +0000)
committerasv <asv@opencascade.com>
Fri, 26 Aug 2005 07:07:05 +0000 (07:07 +0000)
src/SVTK/SVTK_RenderWindowInteractor.cxx

index d672ea15d9fecd1221a74513adf366470f3edc83..bcba8a9382d7c7d55713e7bf523d6c014b0f47fd 100644 (file)
@@ -340,7 +340,7 @@ SVTK_RenderWindowInteractor
 {
   myInteractor->SetKeyEventInformation( ( event->state() & ControlButton ),
                                        ( event->state() & ShiftButton ),
-                                       0 );
+                                       event->key() );
   myInteractor->KeyPressEvent();
 
   emit KeyPressed( event );
@@ -353,7 +353,7 @@ SVTK_RenderWindowInteractor
 {
   myInteractor->SetKeyEventInformation( ( event->state() & ControlButton ),
                                        ( event->state() & ShiftButton ),
-                                       0 );
+                                       event->key() );
   myInteractor->KeyReleaseEvent();
 
   emit KeyReleased( event );