| 786 | } |
| 787 | |
| 788 | void Window::PrivateData::onPuglText(const Widget::CharacterInputEvent& ev) |
| 789 | { |
| 790 | DGL_DBGp("onPuglText : %u %u %s\n", ev.keycode, ev.character, ev.string); |
| 791 | |
| 792 | if (modal.child != nullptr) |
| 793 | return modal.child->focus(); |
| 794 | |
| 795 | #ifndef DPF_TEST_WINDOW_CPP |
| 796 | FOR_EACH_TOP_LEVEL_WIDGET_INV(rit) |
| 797 | { |
| 798 | TopLevelWidget* const widget(*rit); |
| 799 | |
| 800 | if (widget->isVisible() && widget->onCharacterInput(ev)) |
| 801 | break; |
| 802 | } |
| 803 | #endif |
| 804 | } |
| 805 | |
| 806 | void Window::PrivateData::onPuglMouse(const Widget::MouseEvent& ev) |
| 807 | { |
no test coverage detected