HandyOrg / HandyOrg/HandyControl
[Bug] Lost focus after selecting an item in AutoCompleteTextBox with return key
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Selecting an item from the drop down list with return key (or by clicking on it) causes AutoCompleteTextBox to lose focus.
To Reproduce
See gif
Expected behavior
(keyboard) Focus should be set back to the text box
Screenshots

Environment (please complete the following information):
- .net: 4.8.0
- Version 3.3.0.0
Additional context
One reason why this is an issue is that not less times the developer bound the return key to a command. Or sometimes you want to allow auto complete but user is allowed to type anything further than that. In both cases the end user has to manually set keyboard focus back.
Best way to see how auto complete should behave is using Edge or Chrome browser and type into the address bar, select an item via arrow keys and see what happens (keyboard focus is set back to the address bar).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the AutoCompleteTextBox using the return key and mouse selection, then trace the control's selection and focus handling. Done means focus returns to the text box after either selection method, while preserving the described autocomplete behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100