From f5378e392bd6395355a0d7910f58baffdea604f0 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 22 Feb 2021 19:57:32 +1100 Subject: [PATCH] Remove fog cut alt shortcut --- src/components/map/controls/FogToolSettings.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/map/controls/FogToolSettings.js b/src/components/map/controls/FogToolSettings.js index 81b8384..7342a1b 100644 --- a/src/components/map/controls/FogToolSettings.js +++ b/src/components/map/controls/FogToolSettings.js @@ -30,9 +30,7 @@ function BrushToolSettings({ }) { // Keyboard shortcuts function handleKeyDown({ key, ctrlKey, metaKey, shiftKey }) { - if (key === "Alt") { - onSettingChange({ useFogCut: !settings.useFogCut }); - } else if (key === "p") { + if (key === "p") { onSettingChange({ type: "polygon" }); } else if (key === "b") { onSettingChange({ type: "brush" }); @@ -65,13 +63,7 @@ function BrushToolSettings({ } } - function handleKeyUp({ key }) { - if (key === "Alt") { - onSettingChange({ useFogCut: !settings.useFogCut }); - } - } - - useKeyboard(handleKeyDown, handleKeyUp); + useKeyboard(handleKeyDown); const isSmallScreen = useMedia({ query: "(max-width: 799px)" }); const drawTools = [