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
|
|
@ -241,7 +241,7 @@ function regenerateReligions() {
|
|||
function regenerateMarkers(event) {
|
||||
let number = gauss(1, .5, .3, 5, 2);
|
||||
|
||||
if (event.ctrlKey) {
|
||||
if (isCtrlClick(event)) {
|
||||
const numberManual = prompt("Please provide markers number multiplier", 1);
|
||||
if (numberManual === null || numberManual === "" || isNaN(+numberManual)) {
|
||||
tip("The number provided is invalid, please try again and provide a valid number", false, "error", 4000);
|
||||
|
|
@ -263,7 +263,7 @@ function regenerateMarkers(event) {
|
|||
function regenerateZones(event) {
|
||||
let number = gauss(1, .5, .6, 5, 2);
|
||||
|
||||
if (event.ctrlKey) {
|
||||
if (isCtrlClick(event)) {
|
||||
const numberManual = prompt("Please provide zones number multiplier", 1);
|
||||
if (numberManual === null || numberManual === "" || isNaN(+numberManual)) {
|
||||
tip("The number provided is invalid, please try again and provide a valid number", false, "error", 4000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue