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

2010-05-31 Thread Matthias Meißer
Hi Sebastian,

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 make so much trouble :(

Matthias

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


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

2010-05-31 Thread Sebastian Klein
Matthias Meißer wrote:
 Hi Sebastian,
 
 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 make so much trouble :(

I tried and it worked just fine for me. :)

Have you done 'svn up'?

Good luck,

Sebastian

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


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

2010-05-31 Thread Matthias Meißer
Hi Sebastian, yes my SVN is up to date. Could you have a look in 
PositionLayer.java, please?

My aim is to get the controls to control my video in main window. of 
course I will add menu entries but they can't register for keys like 
cursor keys, right?

Matthias

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


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

2010-05-31 Thread Matthias Meißer
Thx to Sebastian my problem is solved. My JOSM was out of date :(

Matthias

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


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

2010-05-30 Thread Sebastian Klein
Hi,

haven't you received my email? (see below)

Cheers,

Sebastian

 Original Message 
Subject: Re: [josm-dev] Register for keys/shortcuts
Date: Tue, 18 May 2010 21:23:41 +0200
From: Sebastian Klein basti...@gmail.com
To: Matthias Meißer dig...@arcor.de
References: 4bf13fe9.8030...@arcor.de 4bf14415.2050...@gmail.com 
4bf297ea.1090...@arcor.de 4bf2a427.8040...@gmail.com 
4bf2b4b6@arcor.de

Matthias Meißer wrote:
 Hallo Sebastian,
 
 also vielleicht bin ich echt zu doof aber irgendwie kriege ich das echt 
 nicht hin :(
 Kann es sein, dass Main da die Falsche Komponente ist?
 
 //Main.panel.addKeyListener(this);
 //Main.map.mapView.addKeyListener(this);
 
 Main.contentPane.getInputMap().put(KeyStroke.getKeyStroke(SPACE),pressed);
  

 Main.contentPane.getActionMap().put(pressed,a);
 
 nichts davon funktioniert :(
 Ich habe es mal ins SVN eingecheckt, vielleicht hast du da noch ne Idee?

Hm, merkwürdig, probiers mal mit


Main.registerActionShortcut(a, KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,
0));

Viele Grüße, Sebastian


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev