[josm-dev] detect focused layer
Matthias Meißer
digi_c at arcor.de
Sat Jun 12 14:44:40 BST 2010
Hi devs,
I would like to know how I can get notified if the user has picked
another layer from the list to disable a menu.
The LayerChangeListener fires only, if you add a layer but not if the
focus changes :(
BTW does anybody know why my shortcuts doesn't appeare on hte right side
of a menuitem that I create this way?
>VStart = new JosmAction("play/pause", "audio-playpause",
"starts/pauses video playback",
Shortcut.registerShortcut("videomapping:startstop","",KeyEvent.VK_SPACE,
Shortcut.GROUP_DIRECT), false) {.... }
>VMenu.add(VStart);
nice weekend everybody :)
Matthias
More information about the josm-dev
mailing list