| 571 | } |
| 572 | |
| 573 | bool InputManager::hasTextInputFocus() const |
| 574 | { |
| 575 | if (Windows::IsUsingWidgetTextBox() || gChatOpen) |
| 576 | return true; |
| 577 | |
| 578 | auto* windowMgr = GetWindowManager(); |
| 579 | auto w = windowMgr->FindByClass(WindowClass::textinput); |
| 580 | if (w != nullptr) |
| 581 | return true; |
| 582 | |
| 583 | auto& console = GetInGameConsole(); |
| 584 | if (console.IsOpen()) |
| 585 | return true; |
| 586 | |
| 587 | return false; |
| 588 | } |
nothing calls this directly
no test coverage detected