From e2abc9d18255d3359e0a4e660e1a1c5915605778 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sun, 28 Jun 2020 16:00:44 +1000 Subject: [PATCH] Fix redo shortcut on windows --- src/components/map/controls/DrawingToolSettings.js | 2 +- src/components/map/controls/FogToolSettings.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/map/controls/DrawingToolSettings.js b/src/components/map/controls/DrawingToolSettings.js index 66b0137..9f0bb6f 100644 --- a/src/components/map/controls/DrawingToolSettings.js +++ b/src/components/map/controls/DrawingToolSettings.js @@ -51,7 +51,7 @@ function DrawingToolSettings({ } else if (key === "o") { onSettingChange({ useBlending: !settings.useBlending }); } else if ( - key === "z" && + (key === "z" || key === "Z") && (ctrlKey || metaKey) && shiftKey && !disabledActions.includes("redo") diff --git a/src/components/map/controls/FogToolSettings.js b/src/components/map/controls/FogToolSettings.js index 83b01d0..565e1c9 100644 --- a/src/components/map/controls/FogToolSettings.js +++ b/src/components/map/controls/FogToolSettings.js @@ -44,7 +44,7 @@ function BrushToolSettings({ } else if (key === "s") { onSettingChange({ useEdgeSnapping: !settings.useEdgeSnapping }); } else if ( - key === "z" && + (key === "z" || key === "Z") && (ctrlKey || metaKey) && shiftKey && !disabledActions.includes("redo")