ScreenKeyboardEvents

public final class ScreenKeyboardEvents

Events related to use of the keyboard in a Screen.

All of these events work on top of a specific screen instance. Subscriptions will only last as long as the screen itself, they'll disappear once the screen gets refreshed, closed or replaced. Use BEFORE_INIT to register the desired events every time it is necessary.

Events are fired in the following order:

{@code AllowX -> BeforeX -> AfterX}
If the result of the Allow event is false, then Before and After are not called.

See also

Types

AfterKeyPress
Link copied to clipboard
public interface AfterKeyPress
AfterKeyRelease
Link copied to clipboard
public interface AfterKeyRelease
AllowKeyPress
Link copied to clipboard
public interface AllowKeyPress
AllowKeyRelease
Link copied to clipboard
public interface AllowKeyRelease
BeforeKeyPress
Link copied to clipboard
public interface BeforeKeyPress
BeforeKeyRelease
Link copied to clipboard
public interface BeforeKeyRelease

Functions

afterKeyPress
Link copied to clipboard
static Event<ScreenKeyboardEvents.AfterKeyPressafterKeyPress(Screen screen)
An event that is called after a key press is processed for a screen.
afterKeyRelease
Link copied to clipboard
static Event<ScreenKeyboardEvents.AfterKeyReleaseafterKeyRelease(Screen screen)
An event that is called after the release a key is processed for a screen.
allowKeyPress
Link copied to clipboard
static Event<ScreenKeyboardEvents.AllowKeyPressallowKeyPress(Screen screen)
An event that checks if a key press should be allowed.
allowKeyRelease
Link copied to clipboard
static Event<ScreenKeyboardEvents.AllowKeyReleaseallowKeyRelease(Screen screen)
An event that checks if a pressed key should be allowed to release.
beforeKeyPress
Link copied to clipboard
static Event<ScreenKeyboardEvents.BeforeKeyPressbeforeKeyPress(Screen screen)
An event that is called before a key press is processed for a screen.
beforeKeyRelease
Link copied to clipboard
static Event<ScreenKeyboardEvents.BeforeKeyReleasebeforeKeyRelease(Screen screen)
An event that is called after the release of a key is processed for a screen.

Sources

jvm source
Link copied to clipboard