Interface SupportsKeyboardEvents

All Superinterfaces:
Evented
All Known Implementing Classes:
LeafletMap

public interface SupportsKeyboardEvents extends Evented
Mixin interface adding default methods to register listeners for keyboard related Leaflet events on the implementing component.
  • Method Details

    • onKeyPress

      default void onKeyPress(LeafletEventListener<KeyboardEvent> listener)
      Fired when the user presses a key from the keyboard that produces a character value while the map is focused.
      Parameters:
      listener - the listener to call when the event occurs, not null
    • onKeyDown

      default void onKeyDown(LeafletEventListener<KeyboardEvent> listener)
      Fired when the user presses a key from the keyboard while the map is focused.
      Parameters:
      listener - the listener to call when the event occurs, not null
    • onKeyUp

      default void onKeyUp(LeafletEventListener<KeyboardEvent> listener)
      Fired when the user releases a key from the keyboard while the map is focused.
      Parameters:
      listener - the listener to call when the event occurs, not null