Closed
Description
How to reproduce
- Leaflet version I'm using: 1.0.3
- Browser (with version) I'm using: Chrome 60 (also firefox, safari and others)
- OS/Platform (with version) I'm using: macOS Sierra 10.12.4 (also Windows 10 and Ubuntu)
- go to http://leafletjs.com/examples/quick-start/example.html
- open browser console
- click to map
- press Enter key
What behaviour I'm expecting and which behaviour I'm seeing
Press Enter key results in click event (you may catch it by adding click event listener on map). This behaviour causes issues in different modules. In the example clicking on geometry (circle or polygon) and press Enter key logs Cannot read property 'toString' of undefined
, clicking in other point and press Enter key logs Cannot read property 'lat' of undefined
.
I expect suppressing Enter key as click event so I wont need to check it in every module manually.