VK 在Java 的KeyEvent class 中代表什么?
What does VK stand for in Java's KeyEvent class?
我想知道,VK在java中代表什么?
这是一个实例代码,目的是让您简要了解它的用途:
public void keyPressed(KeyEvent e){ if (e.getKeyCode == KeyEvent.VK_UP) {...}}
这是“虚拟密钥”的shorthand:
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").
我想知道,VK在java中代表什么?
这是一个实例代码,目的是让您简要了解它的用途:
public void keyPressed(KeyEvent e){ if (e.getKeyCode == KeyEvent.VK_UP) {...}}
这是“虚拟密钥”的shorthand:
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").