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

Unified Diff: remoting/protocol/host_event_dispatcher.cc

Issue 214173002: Send TextEvent message from Android client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: remoting/protocol/host_event_dispatcher.cc
diff --git a/remoting/protocol/host_event_dispatcher.cc b/remoting/protocol/host_event_dispatcher.cc
index 6a0986ae76edec3a8bd8109890e40c88ee20209e..4175ae12186f590cbfb44e10e2709153a5a207e0 100644
--- a/remoting/protocol/host_event_dispatcher.cc
+++ b/remoting/protocol/host_event_dispatcher.cc
@@ -41,7 +41,7 @@ void HostEventDispatcher::OnMessageReceived(
// If |text| field is present in KeyEvent then no other fields required,
// otherwise both |usb_keycode| and |pressed| must be present.
- if (event.has_text() || (event.has_usb_keycode() && event.has_pressed())) {
+ if (event.has_usb_keycode() && event.has_pressed()) {
input_stub_->InjectKeyEvent(event);
} else {
LOG(WARNING) << "Received invalid key event.";

Powered by Google App Engine
This is Rietveld 408576698