开发者

How can I force programatically JVM to reread OS key mappings?

开发者 https://www.devze.com 2023-03-23 18:41 出处:网络
When JVM starts, It loads current OS keysym mappings for a specific key. When I change dinamically OS key mappings with \"xmodmap\", JVM can\'t recognize the change, and still use\'s old keysyms.

When JVM starts, It loads current OS keysym mappings for a specific key. When I change dinamically OS key mappings with "xmodmap", JVM can't recognize the change, and still use's old keysyms. How can I force programatically JVM to reread OS key mappin开发者_JS百科gs?


Oracle: Troubleshooting guide for java desktop technologies

On UNIX systems that support dynamic keyboard changes, a running Java application does not recognize such a change. For instance, changing the keyboard from US to German does not change the keyboard mapping. Although the X server detects the change and sends out a MappingNotify event to interested clients, AWT does not refresh its notion of the keycode-keysym mapping.

Seems the answer is: not.

0

精彩评论

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