Fix queue/history keybinding (#419)

This commit is contained in:
Chenlei Hu
2024-08-14 09:53:49 -04:00
committed by GitHub
parent 784947fdea
commit 4eb56a19ba

View File

@@ -10,7 +10,7 @@ app.registerExtension({
// Queue prompt using (ctrl or command) + enter
if (modifierPressed && event.key === 'Enter') {
// Cancel current prompt using (ctrl or command) + alt + enter
if(event.altKey) {
if (event.altKey) {
api.interrupt()
return
}
@@ -63,8 +63,8 @@ app.registerExtension({
}
const keyIdMap = {
q: '#comfy-view-queue-button',
h: '#comfy-view-history-button',
q: '.queue-tab-button.side-bar-button',
h: '.queue-tab-button.side-bar-button',
r: '#comfy-refresh-button'
}