Interface SupportsKeyboardEvents
- All Superinterfaces:
Evented
- All Known Implementing Classes:
LeafletMap
Mixin interface adding default methods to register listeners for keyboard related Leaflet events
on the implementing component.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonKeyDown(LeafletEventListener<KeyboardEvent> listener) Fired when the user presses a key from the keyboard while the map is focused.default voidonKeyPress(LeafletEventListener<KeyboardEvent> listener) Fired when the user presses a key from the keyboard that produces a character value while the map is focused.default voidonKeyUp(LeafletEventListener<KeyboardEvent> listener) Fired when the user releases a key from the keyboard while the map is focused.Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.Evented
addEventListener, clearAllEventListeners, hasEventListeners, listens, off, off, on, removeEventListener
-
Method Details
-
onKeyPress
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, notnull
-
onKeyDown
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, notnull
-
onKeyUp
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, notnull
-