[vtkusers] F10 and ALT keys
jean-michel.rouet at philips.com
jean-michel.rouet at philips.com
Tue Sep 28 06:26:16 EDT 2004
Hello all,
I search google but didn't find any significant answers.
Here is my problem:
Under win32, the ALT and F10 keys are not handled the same way as the
others.
Thus the KeyPress event is not generated, and there is no way for a VTK
application to
react on such keys.
Apparently, win32 generates a WM_SYSKEYUP and WM_SYSKEYDOWN message
instead of the WM_KEYUP and WM_KEYDOWN.
Can a change to vtkWin32RenderWindowInteractor.cxx be made ?
like:
+ case WM_SYSKEYDOWN:
case WM_KEYDOWN:
me->OnKeyDown(hWnd,wParam,LOWORD(lParam),HIWORD(lParam));
break;
+ case WM_SYSKEYUP:
case WM_KEYUP:
me->OnKeyUp(hWnd,wParam,LOWORD(lParam),HIWORD(lParam));
break;
in the
LRESULT CALLBACK vtkHandleMessage2(HWND hWnd,UINT uMsg, WPARAM wParam,
LPARAM lParam,
vtkWin32RenderWindowInteractor *me)
function.
Does it make sense ?
Regards,
JM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040928/a6853597/attachment.htm>
More information about the vtkusers
mailing list