问题
Is there any event for pressing ?, such as keyPress(KeyEvent.VK_?)
in Java?
回答1:
From http://docs.oracle.com/javase/6/docs/api/java/awt/event/KeyEvent.html:
Not all characters have a keycode associated with them. For example, there is no keycode for the question mark because there is no keyboard for which it appears on the primary layer.
来源:https://stackoverflow.com/questions/8385352/what-is-the-java-keyevent-field-for-question-mark