MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnFocusLost

Method OnFocusLost

src/dropdown.cpp:141–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 void OnFocusLost(bool closing) override
142 {
143 if (!closing) {
144 this->options.Reset(DropDownOption::InstantClose);
145 this->Close();
146 }
147 }
148
149 /**
150 * Fit dropdown list into available height, rounding to average item size. Width is adjusted if scrollbar is present.

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.95
ResetMethod · 0.45

Tested by

no test coverage detected