Interface KeyPressedHandler
-
- All Known Subinterfaces:
KeyListener
- All Known Implementing Classes:
AbstractButton,AbstractButton2,GUIButton,GUICommandText,GUIQueryText,GUISelectableButton,GUIText,GUITextButton,GUITextField
public interface KeyPressedHandlerInterface for classes that may handle "pressed" key events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleankeyPressed(@NotNull KeyEvent2 e)Invoked when a key has been pressed.
-
-
-
Method Detail
-
keyPressed
boolean keyPressed(@NotNull @NotNull KeyEvent2 e)Invoked when a key has been pressed.- Parameters:
e- the key event for the key- Returns:
- whether the key event has been consumed
-
-