public interface NativeKeyListener extends EventListener
NativeKeyEvents
.
The class that is interested in processing a NativeKeyEvent
implements this interface, and the object created with that class is
registered with the GlobalScreen
using the
GlobalScreen.addNativeKeyListener(NativeKeyListener)
method. When the
NativeKeyEvent
occurs, that object's appropriate method is
invoked.
NativeKeyEvent
Modifier and Type | Method and Description |
---|---|
void |
nativeKeyPressed(NativeKeyEvent nativeEvent)
Invoked when a key has been pressed.
|
void |
nativeKeyReleased(NativeKeyEvent nativeEvent)
Invoked when a key has been released.
|
void |
nativeKeyTyped(NativeKeyEvent nativeEvent)
Invoked when a key has been typed.
|
void nativeKeyTyped(NativeKeyEvent nativeEvent)
nativeEvent
- the native key event.void nativeKeyPressed(NativeKeyEvent nativeEvent)
nativeEvent
- the native key event.void nativeKeyReleased(NativeKeyEvent nativeEvent)
nativeEvent
- the native key event.Copyright © 2006-2017 ${project.vendor}. All Rights Received.