mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
use e.key instead of e.code
This commit is contained in:
parent
eb2ea8df1d
commit
7598a92436
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue