public static interface Component.UnconsumedKeyEventListener
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
onUnconsumedKeyEvent(Component component,
KeyEvent event) |
Called when a keyboard event is dispatched to this component if it has not been consumed by focused
component.
|
boolean onUnconsumedKeyEvent(Component component, KeyEvent event)
component - Indicates the component to which the key event is dispatched.event - Indicates all information about the key event.true if the listener has consumed the event; returns false otherwise.