All Implemented Interfaces:
Serializable

@DomEvent("leaflet-keyup") public class KeyUpEvent extends KeyboardEvent
Event fired by a LeafletMap when the user releases a key from the keyboard while the map is focused.
See Also:
  • Constructor Details

    • KeyUpEvent

      public KeyUpEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.originalEvent.key") String key, @EventData("event.detail.originalEvent.code") String code, @EventData("event.detail.originalEvent.keyCode") int keyCode, @EventData("event.detail.originalEvent.shiftKey") boolean shiftKey, @EventData("event.detail.originalEvent.altKey") boolean altKey, @EventData("event.detail.originalEvent.ctrlKey") boolean ctrlKey)
      Creates a new key up event.
      Parameters:
      source - the map that fired the event
      fromClient - true if the event originated from the client side
      layerId - the identifier of the layer the event is associated with
      key - the key value of the key represented by the event
      code - the code of the key that triggered the event
      keyCode - the key code of the key that triggered the event
      shiftKey - whether the "SHIFT" key was pressed when the event was triggered
      altKey - whether the "ALT" key was pressed when the event was triggered
      ctrlKey - whether the "CTRL" key was pressed when the event was triggered