开发者

InputEvent modifiers key

开发者 https://www.devze.com 2023-01-17 07:07 出处:网络
When I try to get (isAltGraphDown) if the ALT GR key is pressed when I click a button Java returns always false also if it\'s pressed.

When I try to get (isAltGraphDown) if the ALT GR key is pressed when I click a button Java returns always false also if it's pressed.

Instead with e.getModifiersExText(e.getModifiersEx(开发者_开发知识库)) it returns Ctrl+Alt !!!

What's the problem?

and If I wanted to know if a user pressed a right Shift key?


When I was on the jEdit mailing list I saw a lot of these types of issues, usually when using non-US keyboard layouts. Occasionally other software on the system can also cause trouble, but most often it's a JVM bug. What keyboard layout are you using?

0

精彩评论

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