Hi Henric, "Henric Rosvall" <[EMAIL PROTECTED]> wrote on 05/29/2007 06:21:35 AM:
> Now I want to tab between the "controls" (graphical objects that can > be edited) on the canvas, and most of the time it works like it > should. But when the canvas ha focus, and I press Shoft + Tab, the > following exception is thrown: > java.lang.Error: Decrement not implemented. > at org.apache.batik.gvt.event.AWTEventDispatcher. > decrementKeyTarget(Unknown Source) Yes, this is because the canvas has some preliminary support for focusing elements in the DOM (what you are doing manually). > I've disabled all interactors I could find, so what is it that makes > the Canvas respond to my Shift + Tab except for my own keyhandler? The easiest thing to do will be to replace the event dispatcher. I think currently you will need to override 'initializeEventHandling()' in the canvas to do that (I'm adding a 'createEventDispatcher()' method for the future). You subclass can simply implement decrement/incrementKeyTarget as a no-op. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
