Skip to content

Commit

Permalink
fix redo keyboard shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Lopin committed Jan 4, 2024
1 parent c01e571 commit ede4f45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/PolygonDraw/PolygonMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ede4f45

Please sign in to comment.