add a hotkey for settings (#991)

* add a hotkey for settings

for #942

* playwright test for settings menu hotkey

* make hotkey intercompatible with both old and new UI
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-09-27 08:25:56 +09:00
committed by GitHub
parent 05f999903d
commit 81119acaf2
3 changed files with 15 additions and 1 deletions

View File

@@ -41,7 +41,8 @@ app.registerExtension({
o: '#comfy-file-input',
Backspace: '#comfy-clear-button',
d: '#comfy-load-default-button',
g: '#comfy-group-selected-nodes-button'
g: '#comfy-group-selected-nodes-button',
',': '.comfy-settings-btn'
}
const modifierKeybindId = modifierKeyIdMap[event.key]