Added notes tool setup

This commit is contained in:
Mitchell McCaffrey
2020-11-03 16:21:39 +11:00
parent 9c1960ba71
commit 9fbd0d2a9d
9 changed files with 228 additions and 1 deletions

View File

@@ -135,6 +135,9 @@ function MapInteraction({
if (event.key === "q" && !disabledControls.includes("pointer")) {
onSelectedToolChange("pointer");
}
if (event.key === "n" && !disabledControls.includes("note")) {
onSelectedToolChange("note");
}
}
function handleKeyUp(event) {
@@ -153,6 +156,10 @@ function MapInteraction({
return "move";
case "fog":
case "drawing":
case "note":
return settings.settings[tool].type === "move"
? "pointer"
: "crosshair";
case "measure":
case "pointer":
return "crosshair";