Fix UI issue with pressing space with move tool selected

This commit is contained in:
Mitchell McCaffrey
2021-07-19 11:01:45 +10:00
parent 621014bff2
commit 07058db9c2

View File

@@ -135,6 +135,9 @@ function MapInteraction({
previousSelectedToolRef.current = selectedToolId;
onSelectedToolChange("move");
}
if (!event.repeat && shortcuts.move(event) && selectedToolId === "move") {
previousSelectedToolRef.current = "move";
}
}
function handleKeyUp(event: KeyboardEvent) {