[josm-dev] Register for keys/shortcuts

Matthias Meißer digi_c at arcor.de
Wed Sep 15 11:53:31 BST 2010


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"),
> 				Shortcut.registerShortcut("videomapping:startstop","",KeyEvent.VK_SPACE, Shortcut.GROUP_DIRECT), false) {
> 		{....

But it seems that I cant register for keys like spacebar or enter? That 
would be very nice for a player :)

regards
Matthias





More information about the josm-dev mailing list