Keyboard event handler

16 views
Skip to first unread message

Kevin Whitcomb

unread,
May 9, 2016, 9:43:56 AM5/9/16
to Leaflet
Is it possible to create a handler for keyboard events that are not part of the default leaflet behavior?  For example, pressing the arrow keys would still scroll the map, but pressing a letter or some key that is not handled by leaflet would simply pass through to the DOM keyboard handler?  It seems like if the map has keyboard enabled, it intercepts all keystrokes and does not propagate any, even the ones it has no action for.  I would like to keep the default behavior and augment it with some additional custom controls.  Is there any way to do that?

Thanks.
Reply all
Reply to author
Forward
0 new messages