Remove fog cut alt shortcut

This commit is contained in:
Mitchell McCaffrey 2021-02-22 19:57:32 +11:00
parent 53d4e05502
commit f5378e392b

View File

@ -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 = [