diff --git a/data/shortcuts.json b/data/shortcuts.json index 45ce5aad7b..fadc50fca1 100644 --- a/data/shortcuts.json +++ b/data/shortcuts.json @@ -165,13 +165,11 @@ "text": "shortcuts.editing.drawing.add_area" }, { - "shortcuts": ["4" - ], + "shortcuts": ["4"], "text": "shortcuts.editing.drawing.add_note" }, { - "shortcuts": ["Left-click","shortcuts.key.space" - ], + "shortcuts": ["Left-click","shortcuts.key.space"], "text": "shortcuts.editing.drawing.place_point" }, { diff --git a/modules/renderer/map.js b/modules/renderer/map.js index 0501427207..e19b1d2ddb 100644 --- a/modules/renderer/map.js +++ b/modules/renderer/map.js @@ -38,7 +38,7 @@ import { svgLines, svgMidpoints, svgPoints, - svgVertices, + svgVertices } from '../svg'; import { uiFlash } from '../ui'; @@ -484,8 +484,7 @@ export function rendererMap(context) { if (map.editable() || map.notesEditable()) { context.loadTiles(projection); drawVector(difference, extent); - } - else { + } else { editOff(); }