Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: chrome/browser/ui/input_method/input_method_engine_base.cc

Issue 2077783002: Make limitations for input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos error. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/input_method/input_method_engine_base.cc
diff --git a/chrome/browser/ui/input_method/input_method_engine_base.cc b/chrome/browser/ui/input_method/input_method_engine_base.cc
index 4ba4a75f300eba2fd7f7337fece0700e04d5f7d3..afc3fbda20e4f4f528c662eaca12bbf564350ec9 100644
--- a/chrome/browser/ui/input_method/input_method_engine_base.cc
+++ b/chrome/browser/ui/input_method/input_method_engine_base.cc
@@ -369,7 +369,9 @@ void InputMethodEngineBase::ProcessKeyEvent(const ui::KeyEvent& key_event,
if (&key_event == sent_key_event_)
ext_event.extension_id = extension_id_;
- observer_->OnKeyEvent(active_component_id_, ext_event, callback);
+ // Should not pass key event in password field.
+ if (current_input_type_ != ui::TEXT_INPUT_TYPE_PASSWORD)
+ observer_->OnKeyEvent(active_component_id_, ext_event, callback);
}
void InputMethodEngineBase::SetSurroundingText(const std::string& text,
« no previous file with comments | « chrome/browser/ui/input_method/input_method_engine.cc ('k') | chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698