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

Method OnFocus

src/window.cpp:515–518  ·  view source on GitHub ↗

* Called when window gains focus */

Source from the content-addressed store, hash-verified

513 * Called when window gains focus
514 */
515void Window::OnFocus()
516{
517 if (this->nested_focus != nullptr && this->nested_focus->type == WWT_EDITBOX) VideoDriver::GetInstance()->EditBoxGainedFocus();
518}
519
520/**
521 * Called when window loses focus

Callers 1

SetFocusedWindowFunction · 0.45

Calls 1

EditBoxGainedFocusMethod · 0.45

Tested by

no test coverage detected