我想知道,VK在java中代表什么?
下面是一个实例代码,目的是让您简要了解它的使用位置:
public void keyPressed(KeyEvent e){ if (e.getKeyCode == KeyEvent.VK_UP) {...}}
最佳答案
这是“虚拟 key ”的简写:
Virtual key codes are used to report which keyboard key has been pressed, rather than a character generated by the combination of one or more keystrokes (such as "A", which comes from shift and "a").
关于java - VK在Java的KeyEvent类中代表什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70191537/