mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
fix reselecting same entity in list
This commit is contained in:
parent
079b276c2b
commit
174519e86e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue