Index: ui/base/ime/input_method_base.cc |
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc |
index e4af2e847995cdde30ed6120aaecff569a8052bb..d66cb94b60da6258d3b13bbb165de02ef2e86c25 100644 |
--- a/ui/base/ime/input_method_base.cc |
+++ b/ui/base/ime/input_method_base.cc |
@@ -17,7 +17,9 @@ |
namespace ui { |
InputMethodBase::InputMethodBase() |
- : delegate_(nullptr), text_input_client_(nullptr) {} |
+ : sending_key_event_(false), |
+ delegate_(nullptr), |
+ text_input_client_(nullptr) {} |
InputMethodBase::~InputMethodBase() { |
FOR_EACH_OBSERVER(InputMethodObserver, |
@@ -195,4 +197,10 @@ void InputMethodBase::UpdateCompositionText(const CompositionText& composition_, |
void InputMethodBase::DeleteSurroundingText(int32_t offset, uint32_t length) {} |
+void InputMethodBase::SendKeyEvent(KeyEvent* event) { |
+ sending_key_event_ = true; |
+ DispatchKeyEvent(event); |
+ sending_key_event_ = false; |
+} |
+ |
} // namespace ui |