开发者

Java Keystroke catchining directional keys

I am catching keys for bindings, so far most characters work fine, unti开发者_如何学JAVAl I reached the directional keys (up down left right)

My code for catching other keys are:

KeyStroke key_3 = KeyStroke.getKeyStroke("3");

How do I catch the directional keys?

Thanks!


KeyStroke.getKeyStroke("UP")

and you can specify the ctrl and shift versions with

KeyStroke.getKeyStroke("control UP")
KeyStroke.getKeyStroke("shift UP"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜