<div dir="ltr"><div><div><div>Thanks for your reply!<br><div>I think the window manager (e.g. menu bar can intercept &quot;Alt&quot; 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 &quot;AltKey&quot; in the files, you will notice that the variable has not been changed anywhere. If you search for &quot;ControlKey&quot;, you can see the difference.<br>
<br></div>My suggestion would be to add another variable &quot;alt&quot; in SetEventInformation(). And make &quot;AltKey&quot; really reflects if &quot;alt&quot; 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">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</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 &lt;<a href="mailto:wumengda@gmail.com">wumengda@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt;    I have similar problem with Alt key on Windows 7 64 bit machine. Does<br>
&gt; anyone know why is that? My guess is the alt key event is not even<br>
&gt; propagated to VTK event handling. The following VTK example page also<br>
&gt; mentioned this issue.<br>
&gt;<br>
&gt; <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>
&gt;<br>
&gt; Thanks,<br>
&gt; Mengda<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 20, 2012 at 11:57 AM, Jesús Spí­nola &lt;<a href="mailto:jspinola@gmail.com">jspinola@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I want to know when the &quot;Alt&quot; key is pressed so I use<br>
&gt;&gt; vtkRenderWindowInteractor::GetAltKey(), but it seems it only returns true<br>
&gt;&gt; when &quot;AltGr&quot; is pressed. When I press &quot;Alt&quot; key, I always get false.<br>
&gt;&gt; I tested under W7 x64.<br>
&gt;&gt;<br>
&gt;&gt; Is that a bug or should I use another method?<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance!<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Jesús Spínola<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<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>