* Get the current input text buffer. * @return The currently focused input text buffer or nullptr if no input focused. */ virtual */
| 364 | * @return The currently focused input text buffer or nullptr if no input focused. |
| 365 | */ |
| 366 | /* virtual */ const Textbuf *Window::GetFocusedTextbuf() const |
| 367 | { |
| 368 | if (this->nested_focus != nullptr && this->nested_focus->type == WWT_EDITBOX) { |
| 369 | return &this->GetQueryString(this->nested_focus->GetIndex())->text; |
| 370 | } |
| 371 | |
| 372 | return nullptr; |
| 373 | } |
| 374 | |
| 375 | /** |
| 376 | * Get the current caret position if an edit box has the focus. |
nothing calls this directly
no test coverage detected