mapbox-gl-draw
mapbox-gl-draw copied to clipboard
esc key event
mapbox-gl-js version: 1.13.1 mapbox-gl-draw version: 1.3.0
Steps to Trigger Behavior
- start drawing a line
- make few vertex
- hit the
esc
key
Expected Behavior
A deleteAll
event is triggered
Actual Behavior
No event triggered. Or any that I see. The draw is deleted, but I need to add some custom actions when this occurs.
@tibz7
Did ever find a solution for ESC or keypress event?
I am in the same situation as you.