Re: [josm-dev] Register for keys/shortcuts

2010-09-15 Thread David Earl
On 15/09/2010 11:53, Matthias Meißer wrote: Hi Folks, I'm still working on the Videomapping Plugin and it seems to work. But there is still a problem with the shortcuts: I register them by passing it to my JosmAction for the menu entry: VStart = new JosmAction(tr("play/pause"), "audio-playpause

Re: [josm-dev] Register for keys/shortcuts

2010-09-15 Thread Matthias Meißer
Hi Folks, I'm still working on the Videomapping Plugin and it seems to work. But there is still a problem with the shortcuts: I register them by passing it to my JosmAction for the menu entry: VStart = new JosmAction(tr("play/pause"), "audio-playpause", tr("starts/pauses video playback"),

Re: [josm-dev] Register for keys/shortcuts

2010-05-31 Thread Dirk Stöcker
On Sun, 30 May 2010, Matthias Meißer wrote: no sry missed your mail. Your code doesn't work cause in Main (and in every published method) is no possibility to .registerActionShortcut(a, KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0)); Damn I didn't expected that such an easy thing would ma

Re: [josm-dev] Register for keys/shortcuts

2010-05-30 Thread Matthias Meißer
Hi, sry it's me again with this annoying issue :( Can anybody help me with a good snippet to register Keys as JOSM plugin, please? I'm not sure if it is a problem cause I haven't got the focus as layer or if I use the wrong techniques. I tried: Main.panel.addKeyListener(this); Main.map.mapView

Re: [josm-dev] Register for keys/shortcuts

2010-05-18 Thread Matthias Meißer
Thanks a lot Sebastian :D Well the first rule to study computer science nowadays is to stop coding cause in a lack of time :( And unfortunately I'm not familar with advanced Java coding/libraries/frameworks... But hey I'm willing to learn :P Matthias ___

Re: [josm-dev] Register for keys/shortcuts

2010-05-17 Thread Sebastian Klein
Matthias Meißer wrote: > Sorry folks for my newbie questions but I doesn't get a working solution > to get callbacks if somebody presses the cursor keys in the main window. > > main.parent.addkeyeventlistener(this); doesn't work, too :( > > Is there some kind of Input map or does I have to use a

[josm-dev] Register for keys/shortcuts

2010-05-17 Thread Matthias Meißer
Sorry folks for my newbie questions but I doesn't get a working solution to get callbacks if somebody presses the cursor keys in the main window. main.parent.addkeyeventlistener(this); doesn't work, too :( Is there some kind of Input map or does I have to use another approach like creating an o

[josm-dev] Register for keys/shortcuts

2010-05-16 Thread Matthias Meißer
Hi, I try to register for keyevents for my plugin/layer but this doesn't seem to work :( Main.map.mapView.addKeyListener(this); Is there a good way to get notified for the cursor keys? Matthias ___ josm-dev mailing list josm-dev@openstreetmap.org htt