mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: 🐛 Allow also cmd key for all ctrl actions on mac
This commit is contained in:
parent
eca15f23d3
commit
8be4a5e151
9 changed files with 62 additions and 58 deletions
|
|
@ -414,7 +414,7 @@ function editReligions() {
|
|||
});
|
||||
|
||||
function dragToReorigin(d) {
|
||||
if (d3.event.sourceEvent.ctrlKey) {changeCode(d); return;}
|
||||
if (isCtrlClick(d3.event.sourceEvent)) {changeCode(d); return;}
|
||||
|
||||
const originLine = graph.append("path")
|
||||
.attr("class", "dragLine").attr("d", `M${d.x},${d.y}L${d.x},${d.y}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue