aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/TextHostControlService.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-28 00:22:34 +0800
committercrupest <crupest@outlook.com>2021-02-28 00:22:34 +0800
commit4b78e0b74f70bca2e24dc89b4fdca4dc9222c8b9 (patch)
tree257971a08ccb6bba0fa30857e0fcbd07902a0c91 /include/cru/ui/controls/TextHostControlService.hpp
parent4a0c86d94a06e72be0988062d49a19c05142434a (diff)
downloadcru-4b78e0b74f70bca2e24dc89b4fdca4dc9222c8b9.tar.gz
cru-4b78e0b74f70bca2e24dc89b4fdca4dc9222c8b9.tar.bz2
cru-4b78e0b74f70bca2e24dc89b4fdca4dc9222c8b9.zip
...
Diffstat (limited to 'include/cru/ui/controls/TextHostControlService.hpp')
-rw-r--r--include/cru/ui/controls/TextHostControlService.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/controls/TextHostControlService.hpp b/include/cru/ui/controls/TextHostControlService.hpp
index 9e6a08bc..340228fe 100644
--- a/include/cru/ui/controls/TextHostControlService.hpp
+++ b/include/cru/ui/controls/TextHostControlService.hpp
@@ -100,7 +100,7 @@ class TextHostControlService : public Object {
void SetupOneHandler(event::RoutedEvent<TArgs>* (Control::*event)(),
void (TextHostControlService::*handler)(
typename event::RoutedEvent<TArgs>::EventArgs)) {
- this->event_guard_ += (this->control_->*event)()->Direct()->AddHandler(
+ this->event_guard_ += (this->control_->*event)()->Bubble()->AddHandler(
std::bind(handler, this, std::placeholders::_1));
}