Interface KeyEvent

All Superinterfaces:
Event, Event, UiEventModifier

public interface KeyEvent extends UiEventModifier
A keyboard event that provides access to the keyboard event data.

This event occurs when a user performs some keyboard action. For example, presses or releases a keyboard key.

  • Method Details

    • domKeyCode

      DomKeyCode domKeyCode()
      Returns the code of the physical key used in the event.
      Since:
      7.12
      See Also:
    • character

      String character()
      Returns a UTF-8 character associated with the physical key, if it has a printed representation.

      Otherwise, returns a pre-defined value, such as "Alt" for the Alt key. The possible values are listed in the W3C specification.

      Since:
      7.12