Fix: Make dropdowns self-close when losing focus.
This commit is contained in:
@@ -199,6 +199,11 @@ struct DropdownWindow : Window {
|
||||
}
|
||||
}
|
||||
|
||||
void OnFocusLost() override
|
||||
{
|
||||
this->Close();
|
||||
}
|
||||
|
||||
Point OnInitialPosition(int16 sm_width, int16 sm_height, int window_number) override
|
||||
{
|
||||
return this->position;
|
||||
|
Reference in New Issue
Block a user