From: asv Date: Fri, 26 Aug 2005 07:07:05 +0000 (+0000) Subject: bug in key event fixed: send a key code when invoking key events. X-Git-Tag: BR-D5-38-2003_D2005-12-09~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1203f9462c0210d4ea164a8a020cf7e4ed2fdebb;p=modules%2Fgui.git bug in key event fixed: send a key code when invoking key events. --- diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index d672ea15d..bcba8a938 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -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 );