[josm-dev] MapMode - MouseWheelListener and KeyListener?

Russell Edwards russell at edwds.net
Wed Sep 19 14:55:23 BST 2012


Apologies for asking a beginner's question.

I am writing a plugin which has its own MapMode. I need to catch mouse 
wheel and key press events. How can I do this?

I have tried

... extends MapMode implements MouseWheelListener, KeyListener

... enterMode() {

but the listeners never seem to get called. Moreover the map still zooms 
in and out when the wheel is moved.

Thanks in advance for your help and patience,


More information about the josm-dev mailing list