-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing Esc should dismiss drop down without changing selected item #42487
Comments
@cleidigh I guess somehwere in |
I'd like to take a crack at adding this feature if it's within the scope of what is wanted for the custom select box component. Again, just need some direction towards where I need to look in the code base and I'll get straight to it 💻 👍 |
@raygervais Start by reviewing the select box files: We have to change the keyboard controllers and used a cached selected option if Escape. |
@cleidigh, Should I create a WIP PR so that you and I can discuss from there (after I review and attempt changes)? |
@raygervais |
Noted, will do tonight if I have a chance 👍 |
…3152) * Initial WIP * Added state persistence of original selected option * Renamed selected option variable, added similar logic to onListBlur * Removed onListBlur selection * Added Dropdown Selection handler for onBlur Logic
Issue Type
Bug
Description
Open the output window
Click on the drop down
Press the down and up arrows to change the currently highlighted item.
Press Esc - the drop down closes and the currently highlighted item becomes the selected item
Expected - the drop down should close and the original selected item shoudl remain selected
VS Code Info
VS Code version: Code - Insiders 1.20.0-insider (eed7e19, 2018-01-30T09:51:29.494Z)
OS version: Windows_NT x64 10.0.16299
System Info
Extensions (12)
Reproduces only with extensions
Found when testing: #40589
See how this dropdown works to contrast (I press Esc at the end):
The text was updated successfully, but these errors were encountered: