From 174519e86e3e30918144f519f3da1f5e62065d25 Mon Sep 17 00:00:00 2001 From: David Back Date: Tue, 7 Aug 2018 09:56:51 -0700 Subject: [PATCH] fix reselecting same entity in list --- scripts/system/html/js/entityList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/html/js/entityList.js b/scripts/system/html/js/entityList.js index a8c0e22ae6..626529d62d 100644 --- a/scripts/system/html/js/entityList.js +++ b/scripts/system/html/js/entityList.js @@ -91,7 +91,7 @@ function loaded() { function onRowClicked(clickEvent) { var id = this.dataset.entityId; var selection = [this.dataset.entityId]; - if (clickEvent.ctrlKey) { + if (clickEvent.ctrlKey && selectedEntities.indexOf(id) === -1) { selection = selection.concat(selectedEntities); } else if (clickEvent.shiftKey && selectedEntities.length > 0) { var previousItemFound = -1;