From dc5da7b480f83901fe92068da2e0e2edcd75fd0e Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 9 Dec 2016 12:11:24 -0500 Subject: [PATCH] Follow next vertex when deleting, add suppressMenu when vertex following --- modules/modes/select.js | 8 ++++---- modules/operations/delete.js | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) 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)); }