aboutsummaryrefslogtreecommitdiff
path: root/demos/input_method/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/input_method/main.cpp')
-rw-r--r--demos/input_method/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/input_method/main.cpp b/demos/input_method/main.cpp
index 01a1a695..ce96a8c1 100644
--- a/demos/input_method/main.cpp
+++ b/demos/input_method/main.cpp
@@ -111,7 +111,7 @@ int main() {
}
});
- window->CharEvent()->AddHandler(
+ input_method_context->TextEvent()->AddHandler(
[window, &committed_text](const std::string_view& c) {
committed_text += c;
window->RequestRepaint();