MCPcopy Create free account
hub / github.com/DISTRHO/DPF / onPuglKey

Method onPuglKey

dgl/src/WindowPrivateData.cpp:770–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770void 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
788void Window::PrivateData::onPuglText(const Widget::CharacterInputEvent& ev)
789{

Callers 1

puglEventCallbackMethod · 0.80

Calls 1

focusMethod · 0.45

Tested by

no test coverage detected