Skip to content

Commit

Permalink
#5672 Multiple duplicate items when ctrl pressed (#5720) (#5723)
Browse files Browse the repository at this point in the history
* change rendering of highlights

* fixed macromolecule tests

* fixed indigo-tools tests

* fixed part bonds tests

* fixed bonds tests

* fixed rotation tests

* fixed layout tests

* fixed functional group tests

* bunch of tests

* bunch of tests

* fixed bunch of tests

* fixed test snapshot

* fix snapshot

* fixed bunch of tests

* update test file

* rollback redundant changes

* revert changes isCopy

* fixed multiple duplicating issue

---------

Co-authored-by: Aleksei Proskurnov <aleksei_proskurnov@epam.com>
  • Loading branch information
aproskurnov and Aleksei Proskurnov authored Oct 11, 2024
1 parent 7c1974d commit 2fd9b23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class SelectTool implements Tool {
};
}

if (!ci || ci.map === 'atoms') {
if (!ci || (ci.map === 'atoms' && !event.ctrlKey)) {
atomLongtapEvent(this, rnd);
}

Expand Down Expand Up @@ -346,6 +346,7 @@ class SelectTool implements Tool {
return;
}
this.isMouseDown = false;
this.isReadyForCopy = false;

const editor = this.editor;
const selected = editor.selection();
Expand Down

0 comments on commit 2fd9b23

Please sign in to comment.