mapbox / mapbox/mapbox-gl-draw
esc key event
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
**mapbox-gl-js version**: 1.13.1
**mapbox-gl-draw version**: 1.3.0
### Steps to Trigger Behavior
1. start drawing a line
2. make few vertex
3. 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using mapbox-gl-js 1.13.1 and mapbox-gl-draw 1.3.0: start a line, add vertices, and press Esc. Trace the Esc deletion behavior and its emitted events; done means a custom listener can observe the expected deleteAll event when the drawing is removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100