-
Bug
-
Resolution: Fixed
-
P5
-
1.4.0
-
None
-
beta
-
generic
-
generic
Both the Swing KeyStroke and AWTKeyStroke classes have docs like
/**
* Returns a shared instance of a KeyStroke that represents a key press and
* release (i.e., a KEY_TYPED event).
*
* @param keyChar the character value for a keyboard key
* @return a KeyStroke object for that key
*/
public static KeyStroke getKeyStroke(char keyChar) {
Actually, this is not correct. KEY_TYPED events don't necessarily require
a press and a release; most of the time they are one or more presses.
/**
* Returns a shared instance of a KeyStroke that represents a key press and
* release (i.e., a KEY_TYPED event).
*
* @param keyChar the character value for a keyboard key
* @return a KeyStroke object for that key
*/
public static KeyStroke getKeyStroke(char keyChar) {
Actually, this is not correct. KEY_TYPED events don't necessarily require
a press and a release; most of the time they are one or more presses.