Comfy-Org / Comfy-Org/ComfyUI_frontend

[Feature Request]: Hold down the Shift key to lock the direction in which the node is moving

Open
#1,252 0 comments 2 reactions 1 assignee Claimed by @webfiltered View on GitHub
enhancement
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Hello, I am now really fond of the new frontend; it keeps bringing me surprises, and almost every time there's an update, I check out the exciting new features right away.
Sometimes in ComfyUI, I line up the nodes neatly, but if I drag a node around, the alignment gets immediately disrupted.
Could it be possible to implement a feature similar to Photoshop where holding down the Shift key locks the direction of node movement?
I know that currently, holding down the Shift key is used for moving multiple nodes, but these functions don't conflict. When moving multiple nodes, releasing the Shift key still allows for free movement of those nodes. The direction-locking would only activate when the Shift key is held down.

### Proposed workflow

no

### Additional information

https://github.com/user-attachments/assets/65282dec-d88f-40f2-a1e2-ebeb254be9d9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.