Interface KeyPressedHandler

All Known Implementing Classes:
AbstractButton, AbstractButton2, GUIButton, GUICommandText, GUIQueryText, GUISelectableButton, GUISpinner, GUIText, GUITextButton, GUITextField

public interface KeyPressedHandler
Interface for classes that may handle "pressed" key events.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    keyPressed(@NotNull KeyEvent2 e)
    Invoked when a key has been pressed.
  • Method Details

    • 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