KeyEvent 中有多少 java 个 KeyCode?
How many java KeyCodes are there in KeyEvent?
KeyEvent.getKeyCode()可以返回多少个代码?
KeyEvent.getKeyCode()返回的代码范围是多少?
javadoc for KeyEvent (VK_?) 中列出的 KeyCode 是唯一可以返回的 KeyCode 吗?
这些都是Key*方法可以返回的KeyCode。
根据文档中的这一段判断,似乎没有任何此类保证:
WARNING: Aside from those keys that are defined by the Java language (VK_ENTER, VK_BACK_SPACE, and VK_TAB), do not rely on the values of the VK_ constants. Sun reserves the right to change these values as needed to accomodate a wider range of keyboards in the future.
KeyEvent.getKeyCode()可以返回多少个代码?
KeyEvent.getKeyCode()返回的代码范围是多少?
javadoc for KeyEvent (VK_?) 中列出的 KeyCode 是唯一可以返回的 KeyCode 吗?
这些都是Key*方法可以返回的KeyCode。
根据文档中的这一段判断,似乎没有任何此类保证:
WARNING: Aside from those keys that are defined by the Java language (VK_ENTER, VK_BACK_SPACE, and VK_TAB), do not rely on the values of the VK_ constants. Sun reserves the right to change these values as needed to accomodate a wider range of keyboards in the future.