Commit 7598a924 authored by Andray's avatar Andray

use e.key instead of e.code

parent eb2ea8df
......@@ -846,7 +846,7 @@ onUiLoaded(async() => {
function handleAltKeyDown(e) {
if (!activeElement) return;
if (hotkeysConfig.canvas_hotkey_zoom !== "Alt") return;
if (e.code === "AltLeft" || e.code === "AltRight") {
if (e.key === "Alt") {
wasAltPressed = true;
} else {
wasAltPressed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment