linebender / linebender/druid

Stealing focus from TextBox with Validator

Open
#1,601 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

text
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Hi
I think it will be useful to add `request_focus` call to other controls (i.e a button) to steal it from an active text box to trigger validation and data updating.
The current behavior I seem to be user unfriendly as after entering some text the user is required to press Enter key instead of just clicking a button "create"/"next".

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how request_focus, text-box focus, validation, and button activation interact in Druid. Confirm the expected behavior for clicking a create or next button after editing text, then identify the relevant tests or add coverage showing that focus changes trigger validation and data updating.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.