From 5d779f2fc51e95925d6a1e31aad6392b043d5cd6 Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Fri, 20 Jul 2018 12:56:36 -0400 Subject: [PATCH] WIP: readded missing vars --- modules/modes/drag_note.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/modes/drag_note.js b/modules/modes/drag_note.js index 76575b79e..2c55f4448 100644 --- a/modules/modes/drag_note.js +++ b/modules/modes/drag_note.js @@ -117,6 +117,8 @@ export function modeDragNote(context) { function start(entity) { + _isCancelled = d3_event.sourceEvent.shiftKey; + _activeEntity = entity; _startLoc = entity.loc; @@ -191,6 +193,9 @@ export function modeDragNote(context) { } } + // Below here: validations + var isInvalid = false; + var nopeDisabled = context.surface().classed('nope-disabled'); if (nopeDisabled) { @@ -309,6 +314,9 @@ export function modeDragNote(context) { context.install(hover); context.install(edit); + // context.selectedIDs(null); TODO: possibly add something like this + // context.selectedNoteID(_activeEntity); + // d3_select(window) // .on('keydown.drawWay', keydown) // .on('keyup.drawWay', keyup);