The string must have the following syntax: getKeyStrokeForEvent public static KeyStroke getKeyStrokeForEvent( KeyEvent anEvent). #Receive keystrokes from any application codeParameters: ke圜ode - an int specifying the numeric code for a keyboard key modifiers - a bitwise-ored combination of any modifiers Returns: a KeyStroke object for that key See Also: KeyEvent, The returned KeyStroke will correspond to a key press. Returns: a KeyStroke object for that key See Also: KeyEvent, Parameters: ke圜ode - an int specifying the numeric code for a keyboard key modifiers - a bitwise-ored combination of any modifiers onKeyRelease - true if the KeyStroke should representĪ key release false otherwise. The modifiers consist of any combination of: For example:Īlternatively, the key code may be obtained by calling The "virtual key" constants defined in can be Set of modifiers, specifying whether the key is activated when it is Returns a shared instance of a KeyStroke, given a numeric key code and a
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |