From 1203f9462c0210d4ea164a8a020cf7e4ed2fdebb Mon Sep 17 00:00:00 2001 From: asv Date: Fri, 26 Aug 2005 07:07:05 +0000 Subject: [PATCH] bug in key event fixed: send a key code when invoking key events. --- src/SVTK/SVTK_RenderWindowInteractor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.2