1.

What Are Keyboard Events?

Answer»

When Java generates a keyboard event, it passes an Event object that contains information about the key pressed, Java recognizes normal keys, MODIFIER keys, and special keys, For normal keys, the event object contains the key's ASCII value. For the function, ARROW and other special keys, there are no ASCII codes, so Java uses special Java-defined CODE. You have learned how to detect modifier keys. The modifier keys are STORED in the modifiers variable in the Event object.

When Java generates a keyboard event, it passes an Event object that contains information about the key pressed, Java recognizes normal keys, modifier keys, and special keys, For normal keys, the event object contains the key's ASCII value. For the function, arrow and other special keys, there are no ASCII codes, so Java uses special Java-defined code. You have learned how to detect modifier keys. The modifier keys are stored in the modifiers variable in the Event object.



Discussion

No Comment Found