Skip to content

Conversation

yohanboniface
Copy link
Member

I think we need a way to escape a drawn boxzoom.
And I think pressing escape is the natural way to handle the cancel of this kind of action.
Another way could be to cancel boxzoom if one stop pressing shift before mouseup event, but this is not my preferred way.
What do you think?

Thanks!

Yohan

@mourner
Copy link
Member

mourner commented Feb 20, 2013

Thanks! I think escape is the best option, it's intuitive.

mourner added a commit that referenced this pull request Feb 20, 2013
Allow for cancelling a boxzoom being drawn pressing Escape key
@mourner mourner merged commit 5a22c25 into Leaflet:master Feb 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants