Fix #11043: Don't choose toolbar dropdown option if focus is lost. (#11044)

Since dropdown menus now get closed if they lose focus, 'instant close' dropdowns (i.e. the toolbar dropdowns) should no longer execute their action to avoid unintended actions.
pull/603/head
PeterN 1 year ago committed by GitHub
parent 9f3254b72a
commit b68d56d94d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -199,7 +199,10 @@ struct DropdownWindow : Window {
void OnFocusLost(bool closing) override
{
if (!closing) this->Close();
if (!closing) {
this->instant_close = false;
this->Close();
}
}
Point OnInitialPosition(int16 sm_width, int16 sm_height, int window_number) override

Loading…
Cancel
Save