Reproduction
- Drag a wire from an output with a resolved type
- Type something to narrow down your search
- Note how the type information is lost from the search since it is automatically selected
This is really annoying UX.
The node catalogue is only temporary
Is it really? It is basically unchanged from its initial implementation for 2 years. See #2072.
Code
The node catalogue automatically focuses the input (this is desired):
|
onMount(() => { |
|
setTimeout(() => nodeSearchInput?.focus(), 0); |
When the focus is changed, the text input automatically selects all the text (not desired)
|
function onTextFocused() { |
|
editing = true; |
|
|
|
self?.selectAllText(value); |
|
} |
Reproduction
This is really annoying UX.
The node catalogue is only temporary
Is it really? It is basically unchanged from its initial implementation for 2 years. See #2072.
Code
The node catalogue automatically focuses the input (this is desired):
Graphite/frontend/src/components/floating-menus/NodeCatalog.svelte
Lines 110 to 111 in 9f9899c
When the focus is changed, the text input automatically selects all the text (not desired)
Graphite/frontend/src/components/widgets/inputs/TextInput.svelte
Lines 31 to 35 in 9f9899c