nebula.gl
nebula.gl copied to clipboard
Handle escape hotkey in linestring and polygon modes
Closes #773
Moves handling of keyup.escape to DrawLineStringMode, DrawPolygonMode, and DrawPolygonByDraggingMode. In dragging mode, escape also halts the dragging handler, so no new points are added until a new click.
Also adds some hotkey tests.