A KeyStroke
is defined as an optional set of modifier keys followed optionally by a natural key. A KeyStroke
is said to be complete if it contains a natural key. A natural key is any Unicode character (e.g., "backspace", etc.), any character belonging to a natural language (e.g., "A", "1", "[", etc.), or any special control character specific to computers (e.g., "F10", "PageUp", etc.).
All KeyStroke
objects have a formal string representation available via the toString()
method. There are a number of methods to get instances of KeyStroke
objects, including one which can parse this formal string representation.
All KeyStroke
objects, via the format()
method, provide a version of their formal string representation translated by platform and locale, suitable for display to a user.
KeyStroke
objects are immutable. Clients are not permitted to extend this class.
|
|