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

Method OnFocusLost

src/window.cpp:523–526  ·  view source on GitHub ↗

* Called when window loses focus */

Source from the content-addressed store, hash-verified

521 * Called when window loses focus
522 */
523void Window::OnFocusLost(bool)
524{
525 if (this->nested_focus != nullptr && this->nested_focus->type == WWT_EDITBOX) VideoDriver::GetInstance()->EditBoxLostFocus();
526}
527
528/**
529 * Raise the buttons of the window.

Callers 2

CloseMethod · 0.95
SetFocusedWindowFunction · 0.45

Calls 1

EditBoxLostFocusMethod · 0.45

Tested by

no test coverage detected