Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the begin key?

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?

like image 458
JCalcines Avatar asked Aug 12 '14 08:08

JCalcines


1 Answers

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.

like image 198
JCalcines Avatar answered Sep 28 '22 18:09

JCalcines