diff --git a/modules/modes/select.js b/modules/modes/select.js index c7e9619f9..72212850c 100644 --- a/modules/modes/select.js +++ b/modules/modes/select.js @@ -301,7 +301,7 @@ export function modeSelect(context, selectedIDs) { if (parent) { var way = context.entity(parent); context.enter( - modeSelect(context, [way.first()]).follow(true) + modeSelect(context, [way.first()]).follow(true).suppressMenu(true) ); } } @@ -313,7 +313,7 @@ export function modeSelect(context, selectedIDs) { if (parent) { var way = context.entity(parent); context.enter( - modeSelect(context, [way.last()]).follow(true) + modeSelect(context, [way.last()]).follow(true).suppressMenu(true) ); } } @@ -337,7 +337,7 @@ export function modeSelect(context, selectedIDs) { if (index !== -1) { context.enter( - modeSelect(context, [way.nodes[index]]).follow(true) + modeSelect(context, [way.nodes[index]]).follow(true).suppressMenu(true) ); } } @@ -361,7 +361,7 @@ export function modeSelect(context, selectedIDs) { if (index !== -1) { context.enter( - modeSelect(context, [way.nodes[index]]).follow(true) + modeSelect(context, [way.nodes[index]]).follow(true).suppressMenu(true) ); } } diff --git a/modules/operations/delete.js b/modules/operations/delete.js index d9008c85d..af046916f 100644 --- a/modules/operations/delete.js +++ b/modules/operations/delete.js @@ -47,7 +47,9 @@ export function operationDelete(selectedIDs, context) { context.perform(action, annotation); if (nextSelectedID && context.hasEntity(nextSelectedID)) { - context.enter(modeSelect(context, [nextSelectedID])); + context.enter( + modeSelect(context, [nextSelectedID]).follow(true).suppressMenu(true) + ); } else { context.enter(modeBrowse(context)); }