<div dir="ltr"><div><div><div><div><div><div>Hello everyone,<br><br></div>I'm trying to define my own shortcuts for my app, but I can't figure out how to remove existing shortcuts.<br><br></div><div>First, I wonder if the best way to do that is using the Swing/AWT architecture or the VTK one. I tried both, both allow me to define new shortcuts, but none of them allow me to remove individual default shortcut.<br></div><div><br></div>I tried to subclass vtkInteractorStyle as in this example : <a href="https://lorensen.github.io/VTKExamples/site/Cxx/Interaction/KeypressEvents/">https://lorensen.github.io/VTKExamples/site/Cxx/Interaction/KeypressEvents/</a><br><br></div>The direct C++ to Java translation just do nothing. The custom interactor style is never called. But default shortcut is still registred ('q' key quits and so on...)<br><br>I also tied to remove all keybord related interactor observers to make the whole shortcuts managed by Swing/AWT. To do this, I wrote :<br><br>        renderWindowInteractor.RemoveObservers("KeyPressEvent");<br>        renderWindowInteractor.RemoveObservers("KeyReleaseEvent");<br>        renderWindowInteractor.RemoveObservers("CharEvent");<br><br></div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">but it did not work either.<br><br></span></span></div><div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">All this stuff seems to work properly with other languages than Java. Is there is something special with Java ?<br></span></span></div><div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><br></span></span></div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">I must admit I'm a bit confused. Any help would be gratefully appreciated. Thanks.<br><br></span></span></div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">JMR<br></span></span><div><div><div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><br><br></span></span></div></div></div></div>