Java does not produce proper AltGr key event

前端 未结 1 602
我寻月下人不归
我寻月下人不归 2021-01-18 11:22

I\'m pressing the AltGr key in my Java application, but instead of receiving a KeyEvent with key code VK_ALT_GRAPH I get two events. The first with key code VK_CO

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-18 11:37

    in windows, AltGr and Ctrl+Alt are Synonyms. in some locales(keyboard layouts?, they are both treated as Ctrl+Alt, in others, they are both treated as AltGr. However, I am not completely sure.

    See http://msdn.microsoft.com/en-us/library/windows/desktop/aa511502.aspx and use Ctrl-F to find AltGr.

    0 讨论(0)
提交回复
热议问题