gpt4 book ai didi

java - 什么是开始键?

转载 作者:搜寻专家 更新时间:2023-10-30 21:32:01 25 4
gpt4 key购买 nike

我一直在处理 KeyEvent 问题。我想捕获 Begin 键作为快捷方式,但我做不到,因为 Controller 没有注意到。最后我意识到我试图捕获错误的 key 。我必须捕获 Home 键。 (KeyEvent.VK_HOME)

我在源代码中找到了这个:

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

Begin 键是什么?

最佳答案

page of Java Community Process Maintenance Review for J2SETM 1.5.0 Beta 1说他们添加了该键以解决 Numpad-5 键在按下且 numlock 关闭时的问题

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.

关于java - 什么是开始键?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25259852/

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