| 768 | } |
| 769 | |
| 770 | void Window::PrivateData::onPuglKey(const Widget::KeyboardEvent& ev) |
| 771 | { |
| 772 | DGL_DBGp("onPuglKey : %i %u %u\n", ev.press, ev.key, ev.keycode); |
| 773 | |
| 774 | if (modal.child != nullptr) |
| 775 | return modal.child->focus(); |
| 776 | |
| 777 | #ifndef DPF_TEST_WINDOW_CPP |
| 778 | FOR_EACH_TOP_LEVEL_WIDGET_INV(rit) |
| 779 | { |
| 780 | TopLevelWidget* const widget(*rit); |
| 781 | |
| 782 | if (widget->isVisible() && widget->onKeyboard(ev)) |
| 783 | break; |
| 784 | } |
| 785 | #endif |
| 786 | } |
| 787 | |
| 788 | void Window::PrivateData::onPuglText(const Widget::CharacterInputEvent& ev) |
| 789 | { |
no test coverage detected