<div dir="ltr"><div><div><div>Thanks for your reply!<br><div>I think the window manager (e.g. menu bar can intercept "Alt" key) may be just one of the reasons.<br><br></div>Another reason is found to be in vtkRenderWindowInteractor.cxx/.h. If you search for "AltKey" in the files, you will notice that the variable has not been changed anywhere. If you search for "ControlKey", you can see the difference.<br>
<br></div>My suggestion would be to add another variable "alt" in SetEventInformation(). And make "AltKey" really reflects if "alt" key is received by the vtkRenderWindowInteractor. Of course, this will also require changes in other locations where this function is called (e.g. in QVTKInteractorAdapter.cxx).<br>
<br></div>Thanks,<br></div>Mengda<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 4:08 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your window manager is intercepting the alt click. If you really need<br>
it, then google for a solution on your specific platform.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Sep 2, 2013 at 3:39 PM, Mengda Wu <<a href="mailto:wumengda@gmail.com">wumengda@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I have similar problem with Alt key on Windows 7 64 bit machine. Does<br>
> anyone know why is that? My guess is the alt key event is not even<br>
> propagated to VTK event handling. The following VTK example page also<br>
> mentioned this issue.<br>
><br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ShiftAndControl" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ShiftAndControl</a><br>
><br>
> Thanks,<br>
> Mengda<br>
><br>
><br>
> On Mon, Feb 20, 2012 at 11:57 AM, Jesús Spínola <<a href="mailto:jspinola@gmail.com">jspinola@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I want to know when the "Alt" key is pressed so I use<br>
>> vtkRenderWindowInteractor::GetAltKey(), but it seems it only returns true<br>
>> when "AltGr" is pressed. When I press "Alt" key, I always get false.<br>
>> I tested under W7 x64.<br>
>><br>
>> Is that a bug or should I use another method?<br>
>><br>
>> Thanks in advance!<br>
>><br>
>> --<br>
>> Jesús Spínola<br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div>