Usage of VK_PROPS

Hi everyone!

I just tried binding the VK_PROPS key on a swing GUI.

I used the input map of a JTree to trigger an action. That works fine if I use somehting like

String action ="ctxPopup";

this.tree.getInputMap().put(KeyStroke.getKeyStroke("F2"), action);

but when using

this.tree.getInputMap().put(KeyStroke.getKeyStroke("PROPS"), action);

which also generates a valid KeyStroke being listed in the map, I may hit the props key and nothing happens.

Now, am I completly wrong with the PROPS key? Isn't that the key on bottom right between the windows & CTRY key commonly behaving like a right mouse-click? And if that's not the case, which is the VK for that key?

Thanks in advance,

Sebastian

[840 byte] By [sebastiankirscha] at [2007-10-2 10:44:44]
# 1
I'd guess it was VK_CONTEXT_MENU.I can't test it 'cos I've got a stoopid IBM keyboard which doesn't have it *grr*.Hope this helps.
KPSeala at 2007-7-13 2:56:05 > top of Java-index,Desktop,Core GUI APIs...
# 2
Hi!Well, thank you! I was obviously wrong with VK_PROPS. Unfortunately, I'm using JSE1.4.2 and VK_CONTEXT_MENU was introduced with JSE5.Any suggestions on how to do that with JSE1.4.2? Using the keyCode (525) doesn't seem to work...
sebastiankirscha at 2007-7-13 2:56:05 > top of Java-index,Desktop,Core GUI APIs...