Question by
MagicStyle · Oct 31, 2017 at 08:36 PM ·
dropdownselect
How to deselect dropdown ?
You can easily select a dropdown like this:
myDropdown.Select();
But how can you Deselect it ? There is no function for this?
Comment
No there isn't. Why do you need that tho? The user is the one that deselects stuff when he selects another thing, or clicks/touches outside any other element.
I created a menue and after I enter the dropdown with my keyboard and change the value and then go outside and navigate through my menue with the up and down arrows, then often suddenly the dropdown menue is getting focus for unknown reasons. I already debugged my menue with visual studio, and the dropdown menue gets focus without any interaction. So i thought it might still be selected. Thats why I need the deselect function, so I can deselect it properly.