有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java什么是开始键?

我一直在处理一个问题。我想捕捉Begin键作为快捷方式,但我做不到,因为控制器没有注意到。最后我意识到我试图抓住错误的钥匙。我应该抓住Home键。(KeyEvent.VK_HOME

我在源代码中发现:

/**
 * Constant for the Begin key.
 * @since 1.5
 */
public static final int VK_BEGIN                    = 0xFF58;

什么是Begin


共 (1) 个答案

  1. # 1 楼答案

    这个page of Java Community Process Maintenance Review for J2SETM 1.5.0 Beta 1表示他们添加了一个键,用于在按下Numpad-5键且numlock关闭时解决Numpad-5键的问题

    New Keycode for Numpad-5

    On X-Windows, X-events are produced when the numpad-5 key is pressed even when the numlock key is off. Previously, there was no Java java.awt.event.KeyEvent generated in this situation. A corresponding keycode has been added: java.awt.event.KeyEvent.VK_BEGIN.

    The bug report associated with this change is 4850137.