Hi: I'm working with Batik's JSVGCanvas and have run into a problem. In my test application, I add an Interactor to the canvas. The Interactor takes key events (as well as mouse events.)
The problem is that the arrow keys on my keyboard (the non-keypad up, down, left and right keys) seem to scroll the canvas (oddly, “up” moves the svg content down and “down” moves the svg content up.) I want to use the arrow keys with my Interactor, but cannot seem to prevent the arrow keys from scrolling the canvas. The result is my Interactor's action and the canvas scroll performed together. I have tried the method setDisableInteractions(): JSVGCanvas c = new JSVGCanvas(); c.setDisableInteractions(true); But this disables my Interactor as well – which is not good... I have tried the below JSVGanvas methods: c.setEnableImageZoomInteractor(false); c.setEnablePanInteractor(false); c.setEnableResetTransformInteractor(false); c.setEnableRotateInteractor(false); c.setEnableZoomInteractor(false); None seem to effect the arrow key scrolling – the key actions seems to be persistent... Is there a way to stop the arrow keys from scrolling the canvas, so my Interactor can use those key actions its purposes (i.e. turn off this default key action so I my Interactor to handle these events exclusively.) Please help. Thank you.