Comfy-Org / Comfy-Org/ComfyUI

[Feature request] Auto-select prompt dialog text

Open
#1,023 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

For better usability (in at least certain contexts, e.g. for \), prompt dialog text should be auto-selected when the dialog is opened.

![autoselect](https://github.com/comfyanonymous/ComfyUI/assets/18671947/45030009-4745-4377-b4f9-21729ea199b7)

This feature was also requested by someone in #414, but that's a collection of several requests and this particular one doesn't seem to have gotten traction.

I had a quick look in the ComfyUI code, and a kludge fix could be done by adding `requestAnimationFrame(()=>dialog.querySelector("input")?.select?.());` to `LGraphCanvas.prototype.prompt()` in litegraph.core.js. But I'm not familiar at all with the codebase and don't know the potential corner cases.

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.