HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

[Bug] Lost focus after selecting an item in AutoCompleteTextBox with return key

Open Symbai opened this issue 2 years ago • 1 comments

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 ezgif com-gif-maker

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).

Symbai avatar Dec 12 '21 12:12 Symbai

I see pending discussion label has been added. I've listed two reasons why I believe this is a bug in first post under additional context. Also compared it against existing auto completion behavior.

Symbai avatar Dec 14 '21 16:12 Symbai