Re: [josm-dev] MapMode - MouseWheelListener and KeyListener?

2012-09-19 Thread Russell Edwards
On 20/09/12 04:41, Paul Hartmann wrote: I put your code in SelectAction and MouseWheelListener worked directly. Not sure if you can easily suppress zoom, though. What is your mapmode about? Other plugins have a similar similar setup, e.g. alignways has a mapmode with MouseListener. In order

Re: [josm-dev] MapMode - MouseWheelListener and KeyListener?

2012-09-19 Thread Paul Hartmann
On 09/19/2012 03:55 PM, Russell Edwards wrote: Hello, 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

[josm-dev] MapMode - MouseWheelListener and KeyListener?

2012-09-19 Thread Russell Edwards
Hello, 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() { ... Main.map.mapView