mapbox-gl-draw icon indicating copy to clipboard operation
mapbox-gl-draw copied to clipboard

Keybindings don't work unless controls are shown

Open stevage opened this issue 5 years ago • 1 comments

mapbox-gl-js version: 1.9.0 mapbox-gl-draw version: 1.1.2

Steps to Trigger Behavior

Initialise draw like:

draw = new MapboxDraw({
  displayControlsDefault: false,
  modes: {
    ...MapboxDraw.modes,
  },
  keybindings: true,
});
  1. Create a line feature and select one vertex
  2. Press the delete key

Expected Behavior

Vertex is deleted

Actual Behavior

Nothing. You need to have at least the Trash control displayed.

stevage avatar Jun 01 '20 11:06 stevage

https://github.com/mapbox/mapbox-gl-draw/pull/952/files

usb248 avatar Jun 23 '20 12:06 usb248