[vtkusers] F10 and ALT keys
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Sep 28 08:11:01 EDT 2004
Salut Jean Michel,
Could you add a bug (feature request) for this and assign to me. Your
patch looks good to me, it's just I need to check what is the behavior
on *nices, and Mac to try to have a similar behavior.
Thanks
Mathieu
jean-michel.rouet at philips.com wrote:
>
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list