A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/AWTKeyStroke.html below:

AWTKeyStroke (Java SE 19 & JDK 19)

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
KeyStroke

An

AWTKeyStroke

represents a key action on the keyboard, or equivalent input device.

AWTKeyStroke

s can correspond to only a press or release of a particular key, just as

KEY_PRESSED

and

KEY_RELEASED KeyEvent

s do; alternately, they can correspond to typing a specific Java character, just as

KEY_TYPED KeyEvent

s do. In all cases,

AWTKeyStroke

s can specify modifiers (alt, shift, control, meta, altGraph, or a combination thereof) which must be present during the action for an exact match.

AWTKeyStrokes are immutable, and are intended to be unique. Client code should never create an AWTKeyStroke on its own, but should instead use a variant of getAWTKeyStroke. Client use of these factory methods allows the AWTKeyStroke implementation to cache and share instances efficiently.

Since:
1.4
See Also:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4