gpt4 book ai didi

java - KeyEvent中有多少个java KeyCode?

转载 作者:行者123 更新时间:2023-12-01 11:18:47 30 4
gpt4 key购买 nike

KeyEvent.getKeyCode()可以返回多少个code?

KeyEvent.getKeyCode()返回的代码范围是多少?

javadoc for KeyEvent 上列出了 key 代码吗? (VK_?)唯一可以返回的KeyCodes,还是还有更多?

最佳答案

从文档中的这一段来看,似乎没有任何此类保证:

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.

关于java - KeyEvent中有多少个java KeyCode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31496070/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com