mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
use e.key instead of e.code
This commit is contained in:
parent
eb2ea8df1d
commit
7598a92436
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user