From beb5c2627c6ebe7da5f05765b66e7455b5f78658 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 20 Aug 2020 19:45:22 -0600 Subject: [PATCH] Disable CTRL+Click and SHIFT+Click actions on tag panel --- src/stores/TagOrderStore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stores/TagOrderStore.js b/src/stores/TagOrderStore.js index 2acf531d86..3cd3f796cc 100644 --- a/src/stores/TagOrderStore.js +++ b/src/stores/TagOrderStore.js @@ -115,9 +115,11 @@ class TagOrderStore extends Store { break; } case 'select_tag': { + const allowMultiple = !SettingsStore.getValue("feature_communities_v2_prototypes") + let newTags = []; // Shift-click semantics - if (payload.shiftKey) { + if (payload.shiftKey && allowMultiple) { // Select range of tags let start = this._state.orderedTags.indexOf(this._state.anchorTag); let end = this._state.orderedTags.indexOf(payload.tag); @@ -135,7 +137,7 @@ class TagOrderStore extends Store { this._state.orderedTags.slice(start, end + 1).concat(newTags), )]; } else { - if (payload.ctrlOrCmdKey) { + if (payload.ctrlOrCmdKey && allowMultiple) { // Toggle individual tag if (this._state.selectedTags.includes(payload.tag)) { newTags = this._state.selectedTags.filter((t) => t !== payload.tag);