I had been dealing with a KeyEvent
issue. I wanted to catch the Begin
key for a shortcut but I couldn't because the controller didn't notice. Finally I realize that I was trying to catch the wrong key. I should have to catch the Home
key. (KeyEvent.VK_HOME
)
I found this in the source code:
/**
* Constant for the Begin key.
* @since 1.5
*/
public static final int VK_BEGIN = 0xFF58;
What is the Begin
key?
This page of Java Community Process Maintenance Review for J2SETM 1.5.0 Beta 1 says that they added that key for solving a problem for Numpad-5 key when it is pressed and numlock is off
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With