diff options
author | crupest <crupest@outlook.com> | 2021-10-21 21:29:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-21 21:29:06 +0800 |
commit | 6f1edc1604341b32e13371c8a4ad431e9a00cc87 (patch) | |
tree | 73b719af474789b14bfec9c7323c896a7927a45e /src/osx/gui/InputMethod.mm | |
parent | 2d8237bf58ef0a9074d05aed2fe98d739f5e3bf0 (diff) | |
download | cru-6f1edc1604341b32e13371c8a4ad431e9a00cc87.tar.gz cru-6f1edc1604341b32e13371c8a4ad431e9a00cc87.tar.bz2 cru-6f1edc1604341b32e13371c8a4ad431e9a00cc87.zip |
...
Diffstat (limited to 'src/osx/gui/InputMethod.mm')
-rw-r--r-- | src/osx/gui/InputMethod.mm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/osx/gui/InputMethod.mm b/src/osx/gui/InputMethod.mm index 2331d8b7..2c4ac643 100644 --- a/src/osx/gui/InputMethod.mm +++ b/src/osx/gui/InputMethod.mm @@ -3,6 +3,7 @@ #import <AppKit/AppKit.h> #include "InputMethodPrivate.h" #include "WindowPrivate.h" +#include "cru/common/Logger.hpp" #include "cru/osx/Convert.hpp" #include "cru/osx/gui/Window.hpp" @@ -54,9 +55,15 @@ OsxInputMethodContext::OsxInputMethodContext(OsxWindow* window) OsxInputMethodContext::~OsxInputMethodContext() {} -void OsxInputMethodContext::EnableIME() { p_->Activate(); } +void OsxInputMethodContext::EnableIME() { + log::Debug(u"Enable IME."); + p_->Activate(); +} -void OsxInputMethodContext::DisableIME() { p_->Deactivate(); } +void OsxInputMethodContext::DisableIME() { + log::Debug(u"Disable IME."); + p_->Deactivate(); +} bool OsxInputMethodContext::ShouldManuallyDrawCompositionText() { return true; } |