diff --git a/src/PolygonDraw/PolygonMap.tsx b/src/PolygonDraw/PolygonMap.tsx index 5590019..5f59120 100644 --- a/src/PolygonDraw/PolygonMap.tsx +++ b/src/PolygonDraw/PolygonMap.tsx @@ -178,10 +178,13 @@ export const PolygonMap = ({ reframe(); break; case 'z': + if (e.metaKey && isUndoPossible) { + onUndo(); + } + break; + case 'Z': if (e.metaKey && e.shiftKey && isRedoPossible) { onRedo(); - } else if (e.metaKey && isUndoPossible) { - onUndo(); } break; }