mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-10 07:30:08 +00:00
Add keyboard shortcut for pin/unpin node (#736)
* Add keyboard shortcut for pin/unpin node * Add playwright test * Add nextFrame calls * Keyboard event on canvas * disable test
This commit is contained in:
@@ -1313,6 +1313,17 @@ export class ComfyApp {
|
||||
block_default = true
|
||||
}
|
||||
|
||||
// p pin/unpin
|
||||
if (e.key === 'p') {
|
||||
if (this.selected_nodes) {
|
||||
for (const i in this.selected_nodes) {
|
||||
const node = this.selected_nodes[i]
|
||||
node.pin()
|
||||
}
|
||||
}
|
||||
block_default = true
|
||||
}
|
||||
|
||||
// Alt + C collapse/uncollapse
|
||||
if (e.key === 'c' && e.altKey) {
|
||||
if (this.selected_nodes) {
|
||||
|
||||
Reference in New Issue
Block a user