| 575 | } |
| 576 | |
| 577 | void WindowCancelTextbox() |
| 578 | { |
| 579 | if (_usingWidgetTextBox) |
| 580 | { |
| 581 | auto* windowMgr = GetWindowManager(); |
| 582 | WindowBase* w = windowMgr->FindByNumber(_currentTextBox.window.classification, _currentTextBox.window.number); |
| 583 | _currentTextBox.window.classification = WindowClass::null; |
| 584 | _currentTextBox.window.number = 0; |
| 585 | ContextStopTextInput(); |
| 586 | _usingWidgetTextBox = false; |
| 587 | if (w != nullptr) |
| 588 | { |
| 589 | windowMgr->InvalidateWidget(*w, _currentTextBox.widgetIndex); |
| 590 | } |
| 591 | _currentTextBox.widgetIndex = kWidgetIndexNull; |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | void WindowUpdateTextboxCaret() |
| 596 | { |
no test coverage detected