Login  Register

Re: Keyboard listeners...

Posted by Nick Mortimer on Nov 21, 2006; 4:34am
URL: http://imagej.273.s1.nabble.com/Keyboard-listeners-tp3700978p3700979.html

Hmm...

I think you want to override the IJ keyboard commands?

I'm my case I have a custom canvas which implements it's own Key
listener

In the constructor I have the following lines

super.removeKeyListener(IJ.getInstance());
super.addKeyListener(this);


or is you have a imagecanvas called ic

ic.removeKeyListener(IJ.getInstance());
ic.addKeyListener(this);

Hope this helps

Nick