aboutsummaryrefslogtreecommitdiff
path: root/src/win/native/input_method.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-05 22:42:17 +0800
committercrupest <crupest@outlook.com>2020-04-05 22:42:17 +0800
commit37ac119b98504ba859dfc789e357718264446bb9 (patch)
tree6409f333d66fb10f03e65cea03a45d609dc16785 /src/win/native/input_method.cpp
parentabcaa16c897678fa3fa4cda3f23660e4ca46b841 (diff)
downloadcru-37ac119b98504ba859dfc789e357718264446bb9.tar.gz
cru-37ac119b98504ba859dfc789e357718264446bb9.tar.bz2
cru-37ac119b98504ba859dfc789e357718264446bb9.zip
...
Diffstat (limited to 'src/win/native/input_method.cpp')
-rw-r--r--src/win/native/input_method.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/win/native/input_method.cpp b/src/win/native/input_method.cpp
index 837d0ed7..9d8b0760 100644
--- a/src/win/native/input_method.cpp
+++ b/src/win/native/input_method.cpp
@@ -88,25 +88,16 @@ void WinInputMethodContextRef::OnWindowNativeMessage(
switch (message.msg) {
case WM_IME_COMPOSITION: {
composition_text_change_event_.Raise(this->GetCompositionText());
- args.HandleWithResult(0);
break;
}
case WM_IME_STARTCOMPOSITION: {
composition_start_event_.Raise(nullptr);
- args.HandleWithResult(0);
break;
}
case WM_IME_ENDCOMPOSITION: {
composition_end_event_.Raise(nullptr);
- args.HandleWithResult(0);
break;
}
- case WM_IME_SETCONTEXT: {
- const auto new_l_param =
- message.l_param & (~static_cast<LPARAM>(ISC_SHOWUICOMPOSITIONWINDOW));
- args.HandleWithResult(::DefWindowProcW(message.hwnd, message.msg,
- message.w_param, new_l_param));
- }
}
}
} // namespace cru::platform::native::win